Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
d425dcc
1
Parent(s):
7aafe66
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,13 @@ with gr.Blocks() as demo:
|
|
| 7 |
out = gr.Text()
|
| 8 |
btn = gr.Button()
|
| 9 |
btn2 = gr.Button()
|
|
|
|
| 10 |
text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
|
| 11 |
btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
|
| 12 |
btn2.click(fn=lambda x: "hello", inputs=text, outputs=out, api_name='say_hello')
|
| 13 |
text.change(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
demo.queue().launch()
|
|
|
|
| 7 |
out = gr.Text()
|
| 8 |
btn = gr.Button()
|
| 9 |
btn2 = gr.Button()
|
| 10 |
+
btn3 = gr.Button()
|
| 11 |
text.submit(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
|
| 12 |
btn.click(fn=lambda x: x, inputs=text, outputs=out, api_name='run')
|
| 13 |
btn2.click(fn=lambda x: "hello", inputs=text, outputs=out, api_name='say_hello')
|
| 14 |
text.change(fn=lambda x: x, inputs=text, outputs=out, api_name=False)
|
| 15 |
+
btn3.click(fn=lambda x: "43", inputs=text, outputs=out, api_name="")
|
| 16 |
+
|
| 17 |
|
| 18 |
|
| 19 |
demo.queue().launch()
|