# 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")