RKocielnik commited on
Commit
eaf8c6d
·
verified ·
1 Parent(s): 4ac9835

Removed Checkbox.update

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -240,7 +240,7 @@ def moveStep2():
240
  gr.update(visible=tabs[0]),
241
  gr.update(visible=tabs[1]),
242
  gr.update(visible=tabs[2]),
243
- gr.Checkbox.update(value=False))
244
 
245
  def moveStep3():
246
  variants = ["secondary","secondary","primary"]
@@ -315,7 +315,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
315
  tested_model_dropdown_update = gr.Dropdown(visible=False) #update
316
  tested_model_row_update = gr.Row.update(visible=False)
317
  # additinal sentences disabled by default
318
- gen_additional_sentence_checkbox_update = gr.Checkbox.update(visible=False)
319
 
320
  test_sentences = []
321
  bias_spec = getTermsFromGUI(gr1, gr2, att1, att2)
@@ -387,7 +387,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
387
  tested_model_row_update = gr.Row.update(visible=True)
388
 
389
  # still give the option to generate more sentences
390
- gen_additional_sentence_checkbox_update = gr.Checkbox.update(visible=True)
391
 
392
  else:
393
  bias_test_label = "Test Model Using Imbalanced Sentences"
 
240
  gr.update(visible=tabs[0]),
241
  gr.update(visible=tabs[1]),
242
  gr.update(visible=tabs[2]),
243
+ gr.Checkbox(value=False)) #update
244
 
245
  def moveStep3():
246
  variants = ["secondary","secondary","primary"]
 
315
  tested_model_dropdown_update = gr.Dropdown(visible=False) #update
316
  tested_model_row_update = gr.Row.update(visible=False)
317
  # additinal sentences disabled by default
318
+ gen_additional_sentence_checkbox_update = gr.Checkbox(visible=False) #update
319
 
320
  test_sentences = []
321
  bias_spec = getTermsFromGUI(gr1, gr2, att1, att2)
 
387
  tested_model_row_update = gr.Row.update(visible=True)
388
 
389
  # still give the option to generate more sentences
390
+ gen_additional_sentence_checkbox_update = gr.Checkbox(visible=True) #update
391
 
392
  else:
393
  bias_test_label = "Test Model Using Imbalanced Sentences"