Spaces:
Running
Running
Now it's allowed to close modal window only with buttons Yes/No
Browse files
app.py
CHANGED
@@ -522,7 +522,7 @@ def gradio_app():
|
|
522 |
submission_btn_yes = gr.Button(value='Submit model', interactive=False, visible=False)
|
523 |
submission_btn_no = gr.Button(value='Reverse process', interactive=False, visible=False)
|
524 |
|
525 |
-
with Modal(visible=False) as modal_submit:
|
526 |
gr.Markdown(MODAL_SUBMIT_MARKDOWN)
|
527 |
modal_submit_yes = gr.Button("Yes", interactive=True)
|
528 |
modal_submit_no = gr.Button("No", interactive=True)
|
|
|
522 |
submission_btn_yes = gr.Button(value='Submit model', interactive=False, visible=False)
|
523 |
submission_btn_no = gr.Button(value='Reverse process', interactive=False, visible=False)
|
524 |
|
525 |
+
with Modal(visible=False, allow_user_close=False) as modal_submit:
|
526 |
gr.Markdown(MODAL_SUBMIT_MARKDOWN)
|
527 |
modal_submit_yes = gr.Button("Yes", interactive=True)
|
528 |
modal_submit_no = gr.Button("No", interactive=True)
|