Spaces:
Running
Running
Upload app.py
#1
by
Salah2MO2
- opened
app.py
CHANGED
@@ -3,11 +3,12 @@ import gradio as gr
|
|
3 |
def reply_to_user(text):
|
4 |
return f"👋 أهلاً، إنت كتبت: {text}"
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
# هنا
|
11 |
-
|
12 |
|
13 |
-
|
|
|
|
3 |
def reply_to_user(text):
|
4 |
return f"👋 أهلاً، إنت كتبت: {text}"
|
5 |
|
6 |
+
demo = gr.Interface(
|
7 |
+
fn=reply_to_user,
|
8 |
+
inputs=gr.Textbox(label="اكتب رسالة"),
|
9 |
+
outputs=gr.Textbox(label="الرد"),
|
10 |
+
api_name="predict" # هنا مضمون 100% لأنه Interface مش Blocks
|
11 |
+
)
|
12 |
|
13 |
+
if __name__ == "__main__":
|
14 |
+
demo.launch()
|