Spaces:
Sleeping
Sleeping
Commit
·
9741351
1
Parent(s):
3afd9ef
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,6 @@ def generate():
|
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
btn = gr.Button("Generate")
|
| 15 |
out = gr.Textbox(label="Generation", visible=False)
|
| 16 |
-
btn.click(fn=generate, outputs=out)
|
| 17 |
|
| 18 |
def change_visibility():
|
| 19 |
return {
|
|
@@ -21,5 +20,6 @@ with gr.Blocks() as demo:
|
|
| 21 |
}
|
| 22 |
|
| 23 |
btn.click(fn=change_visibility, outputs=out)
|
|
|
|
| 24 |
|
| 25 |
demo.launch(debug=True)
|
|
|
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
btn = gr.Button("Generate")
|
| 15 |
out = gr.Textbox(label="Generation", visible=False)
|
|
|
|
| 16 |
|
| 17 |
def change_visibility():
|
| 18 |
return {
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
btn.click(fn=change_visibility, outputs=out)
|
| 23 |
+
btn.click(fn=generate, outputs=out)
|
| 24 |
|
| 25 |
demo.launch(debug=True)
|