MVP-1.1 / app.py
eliwill's picture
Update app.py
cb0cf12
raw
history blame
435 Bytes
import gradio as gr
def update(name):
return f"1) Welcome to Gradio, {name}!", f"2) Welcome to Gradio, {name}!"
with gr.Blocks() as demo:
gr.Markdown("Start typing below and then click **Run** to see the output.")
with gr.Row():
inp = gr.Textbox(placeholder="What is your name?")
out = [gr.Textbox(), gr.Textbox()]
btn = gr.Button("Run")
btn.click(fn=update, inputs=inp, outputs=out)
demo.launch()