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