import gradio as gr def hello(name): return f"Hello {name}, the Space is working!" with gr.Blocks() as demo: gr.Markdown("## Test App") name = gr.Textbox("world", label="Your name") out = gr.Textbox(label="Output") btn = gr.Button("Run") btn.click(hello, name, out) demo.launch()