Spaces:
Runtime error
Runtime error
Commit ·
021291c
1
Parent(s): ecc9862
Debug app.py
Browse fileschanged gr.Button.click to btn.click
changed button = gr.Button to btn = gr.Button
app.py
CHANGED
|
@@ -6,8 +6,8 @@ def sentences():
|
|
| 6 |
|
| 7 |
with gr.Blocks() as pos:
|
| 8 |
txt = gr.Textbox(value="", label="Textbox"),
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
|
| 13 |
pos.launch()
|
|
|
|
| 6 |
|
| 7 |
with gr.Blocks() as pos:
|
| 8 |
txt = gr.Textbox(value="", label="Textbox"),
|
| 9 |
+
btn = gr.Button(value="Free Inspirational Quotes"),
|
| 10 |
+
btn.click(sentences, outputs=[txt]),
|
| 11 |
|
| 12 |
|
| 13 |
pos.launch()
|