Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,17 @@
|
|
1 |
-
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
5 |
|
6 |
-
|
|
|
|
|
7 |
|
8 |
-
|
|
|
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")
|