OthmanBatman commited on
Commit
24b0cdc
·
verified ·
1 Parent(s): 4495535

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -1,12 +1,10 @@
1
  import gradio as gr
2
 
3
- # هادي هي الـ Function اللي تعالج البيانات
4
  def greet(name):
5
- return "Hello " + name + " from Othman's Space!"
6
 
7
- # إنشاء الـ Interface
8
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
9
 
10
- # هادا هو السطر اللي كنت تحوس عليه
11
- # ضفنا show_api=True باش الـ Chrome Extension تقدر تشوف الـ API
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()