Spaces:
Sleeping
Sleeping
Fix flag bug (#23)
Browse files- Fix flag bug (cdb7cbef335e465166fc5cedcd12363b9c488754)
Co-authored-by: Francesco Giannuzzo <[email protected]>
app.py
CHANGED
|
@@ -575,6 +575,11 @@ with gr.Blocks(theme='shivi/calm_seafoam', css_paths='style.css', js=js_func) as
|
|
| 575 |
global flag_TQA
|
| 576 |
flag_TQA = True
|
| 577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 578 |
submit_models_button_tqa.click(fn = change_flag, inputs=[], outputs=[])
|
| 579 |
|
| 580 |
def enable_disable(enable):
|
|
|
|
| 575 |
global flag_TQA
|
| 576 |
flag_TQA = True
|
| 577 |
|
| 578 |
+
def dis_flag():
|
| 579 |
+
global flag_TQA
|
| 580 |
+
flag_TQA = False
|
| 581 |
+
|
| 582 |
+
submit_models_button.click(fn = dis_flag, inputs=[], outputs=[])
|
| 583 |
submit_models_button_tqa.click(fn = change_flag, inputs=[], outputs=[])
|
| 584 |
|
| 585 |
def enable_disable(enable):
|