Spaces:
Running
Running
Disable Yes/No buttons also until No btn is processed
Browse files
app.py
CHANGED
@@ -581,8 +581,20 @@ def gradio_app():
|
|
581 |
)
|
582 |
|
583 |
modal_submit_no.click(
|
|
|
|
|
|
|
|
|
|
|
|
|
584 |
fn=hide_modal,
|
585 |
outputs=[modal_submit]
|
|
|
|
|
|
|
|
|
|
|
|
|
586 |
)
|
587 |
|
588 |
submission_btn_no.click(
|
|
|
581 |
)
|
582 |
|
583 |
modal_submit_no.click(
|
584 |
+
fn=disable_submit_buttons,
|
585 |
+
outputs=[
|
586 |
+
modal_submit_yes,
|
587 |
+
modal_submit_no,
|
588 |
+
]
|
589 |
+
).then(
|
590 |
fn=hide_modal,
|
591 |
outputs=[modal_submit]
|
592 |
+
).then(
|
593 |
+
fn=enable_submit_buttons,
|
594 |
+
outputs=[
|
595 |
+
modal_submit_yes,
|
596 |
+
modal_submit_no,
|
597 |
+
]
|
598 |
)
|
599 |
|
600 |
submission_btn_no.click(
|