Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ 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()
|
| 14 |
#demo.launch(auth=("admin", "1234"))
|
|
|
|
| 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()
|
| 14 |
#demo.launch(auth=("admin", "1234"))
|