ssdfsdfa commited on
Commit
cdc0f94
1 Parent(s): 67e09bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -1,17 +1,9 @@
1
- # import gradio as gr
2
-
3
- # def greet(name):
4
- # return "Hello " + name + "!"
5
-
6
- # demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
 
8
- # demo.launch()
 
9
 
10
- import gradio as gr
11
- import time
12
 
13
- def test(x):
14
- time.sleep(1)
15
- return x
16
 
17
- gr.Interface(test, "textbox", "textbox").queue().launch(root_path="/gradio-demo")
 
1
+ import gradio as gr
 
 
 
 
 
2
 
3
+ def greet(name):
4
+ return "Hello " + name + "!"
5
 
6
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
7
 
8
+ demo.launch()
 
 
9