MVP-1.1 / app.py
eliwill's picture
Create example app
6805ef5
raw
history blame
391 Bytes
# 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()