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