File size: 391 Bytes
6805ef5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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()