import gradio as gr def greet(name): return "Hello " + name + "!" with gr.Blocks() as demo: name = gr.Textbox(label = "Please enter the name below") output = gr.Textbox(label = "Output Box") greet_button = gr.Button("Greet") greet_button.click(fn = greet, inputs = name, outputs = output) demo.launch()