demo / app.py
ssdfsdfa's picture
Update app.py
67e09bb
raw
history blame
311 Bytes
# import gradio as gr
# def greet(name):
# return "Hello " + name + "!"
# demo = gr.Interface(fn=greet, inputs="text", outputs="text")
# demo.launch()
import gradio as gr
import time
def test(x):
time.sleep(1)
return x
gr.Interface(test, "textbox", "textbox").queue().launch(root_path="/gradio-demo")