Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,6 @@ with gr.Blocks() as demo:
|
|
8 |
inp = gr.Textbox(placeholder="What is your name?")
|
9 |
out = gr.Textbox()
|
10 |
btn = gr.Button("Run")
|
11 |
-
btn.click(fn=update, inputs=inp, outputs=out)
|
12 |
|
13 |
demo.launch()
|
|
|
8 |
inp = gr.Textbox(placeholder="What is your name?")
|
9 |
out = gr.Textbox()
|
10 |
btn = gr.Button("Run")
|
11 |
+
btn.click(fn=update, inputs=inp, outputs=out, api_name="hello")
|
12 |
|
13 |
demo.launch()
|