Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
# def greet(name):
|
| 4 |
-
# return "Hello " + name + "!"
|
| 5 |
-
|
| 6 |
-
# demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
import time
|
| 12 |
|
| 13 |
-
|
| 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 |
|
|
|