Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -367,18 +367,11 @@ with gr.Blocks() as demo:
|
|
| 367 |
|
| 368 |
with gr.Row(elem_id="reset_block", visible=True) as reset_block:
|
| 369 |
reset_btn = gr.Button("Reset")
|
| 370 |
-
reset_btn.click(reset_app,
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
with_images,
|
| 376 |
-
image_params,
|
| 377 |
-
main_block_step_1,
|
| 378 |
-
main_block_step_2,
|
| 379 |
-
simulation_output_box,
|
| 380 |
-
run_sim_btn,
|
| 381 |
-
init_btn])
|
| 382 |
|
| 383 |
with gr.Column(elem_id = "user_consent_container") as user_consent_block:
|
| 384 |
accept_checkbox = gr.Checkbox(visible=False)
|
|
|
|
| 367 |
|
| 368 |
with gr.Row(elem_id="reset_block", visible=True) as reset_block:
|
| 369 |
reset_btn = gr.Button("Reset")
|
| 370 |
+
reset_btn.click(reset_app, inputs=[], outputs=[progress_output, log_output, api_key,
|
| 371 |
+
topic, topic_prompt, with_images, image_params,
|
| 372 |
+
main_block_step_1, main_block_step_2,
|
| 373 |
+
simulation_output_box,
|
| 374 |
+
run_sim_btn, init_btn], cancels=[submit_btn])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 375 |
|
| 376 |
with gr.Column(elem_id = "user_consent_container") as user_consent_block:
|
| 377 |
accept_checkbox = gr.Checkbox(visible=False)
|