Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# هادي هي الـ Function اللي تعالج البيانات
|
| 4 |
def greet(name):
|
| 5 |
-
return "Hello
|
| 6 |
|
| 7 |
-
#
|
| 8 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
demo.launch(show_api=True)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
+
return f"Hello {name} from Othman's Medical Space!"
|
| 5 |
|
| 6 |
+
# في النسخ الجديدة، الـ API مفعلة تلقائياً (Public by default)
|
| 7 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
|
| 9 |
+
if __name__ == "__main__":
|
| 10 |
+
demo.launch()
|
|
|