import gradio as gr def test(): return "Hello" with gr.Blocks() as demo: t = gr.Textbox() demo.launch(test, None, t) demo.launch()