yuankaihuo commited on
Commit
18f9276
·
1 Parent(s): b5c8e8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
 
8
- demo.launch(share=True)
 
 
3
  def greet(name):
4
  return "Hello " + name
5
 
6
+ gradio_app = gr.Interface(fn=greet, inputs="text", outputs="text")
7
 
8
+ if __name__ == "__main__":
9
+ gradio_app.launch()