# This is the application file | |
import gradio as gr | |
def print_hello_audrey(name): | |
return "Audrey says hello to {name}".format(name) | |
with gr.Blocks() as demo: | |
name = gr.Textbox(label="Name") | |
output = gr.Textbox(label="Response") | |
audrey_welcome_btn = gr.Button("Welcome button") | |
audrey_welcome_btn.click(fn=print_hello_audrey, inputs=name, outputs= output) | |
demo.launch() | |