Fix return statement
Browse files
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
|
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=
|
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 |
|