idolezal commited on
Commit
2635a46
β€’
1 Parent(s): f0843f2

Disable Yes/No buttons also until No btn is processed

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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(