eliwill commited on
Commit
eafa9b9
·
1 Parent(s): 6805ef5

Fix return statement

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,13 +3,13 @@
3
  import gradio as gr
4
 
5
  def print_hello_audrey(name):
6
- return "Audrey says hello to {name}".format(name)
7
 
8
  with gr.Blocks() as demo:
9
  name = gr.Textbox(label="Name")
10
  output = gr.Textbox(label="Response")
11
  audrey_welcome_btn = gr.Button("Welcome button")
12
- audrey_welcome_btn.click(fn=print_hello_audrey, inputs=name, outputs= output)
13
 
14
  demo.launch()
15
 
 
3
  import gradio as gr
4
 
5
  def print_hello_audrey(name):
6
+ return "Audrey says hello to: " + name
7
 
8
  with gr.Blocks() as demo:
9
  name = gr.Textbox(label="Name")
10
  output = gr.Textbox(label="Response")
11
  audrey_welcome_btn = gr.Button("Welcome button")
12
+ audrey_welcome_btn.click(fn=print_hello_audrey, inputs=name, outputs=output)
13
 
14
  demo.launch()
15