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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -1,8 +1,17 @@
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(root_path="/gradio")
 
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")