Spaces:
Sleeping
Sleeping
Dropdown update removal
Browse files
app.py
CHANGED
@@ -312,7 +312,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
312 |
err_update = updateErrorMsg(False, "")
|
313 |
info_msg_update = gr.Markdown(visible=False, value="") #update
|
314 |
openai_gen_row_update = gr.Row.update(visible=True)
|
315 |
-
tested_model_dropdown_update = gr.Dropdown
|
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)
|
@@ -383,7 +383,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
383 |
#print(test_sentences)
|
384 |
bias_gen_states = [False, True]
|
385 |
openai_gen_row_update = gr.Row.update(visible=False)
|
386 |
-
tested_model_dropdown_update = gr.Dropdown
|
387 |
tested_model_row_update = gr.Row.update(visible=True)
|
388 |
|
389 |
# still give the option to generate more sentences
|
@@ -392,7 +392,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
392 |
else:
|
393 |
bias_test_label = "Test Model Using Imbalanced Sentences"
|
394 |
bias_gen_states = [True, True]
|
395 |
-
tested_model_dropdown_update = gr.Dropdown
|
396 |
tested_model_row_update = gr.Row.update(visible=True)
|
397 |
|
398 |
return (err_update, # error message
|
|
|
312 |
err_update = updateErrorMsg(False, "")
|
313 |
info_msg_update = gr.Markdown(visible=False, value="") #update
|
314 |
openai_gen_row_update = gr.Row.update(visible=True)
|
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)
|
|
|
383 |
#print(test_sentences)
|
384 |
bias_gen_states = [False, True]
|
385 |
openai_gen_row_update = gr.Row.update(visible=False)
|
386 |
+
tested_model_dropdown_update = gr.Dropdown(visible=True) #update
|
387 |
tested_model_row_update = gr.Row.update(visible=True)
|
388 |
|
389 |
# still give the option to generate more sentences
|
|
|
392 |
else:
|
393 |
bias_test_label = "Test Model Using Imbalanced Sentences"
|
394 |
bias_gen_states = [True, True]
|
395 |
+
tested_model_dropdown_update = gr.Dropdown(visible=True) #update
|
396 |
tested_model_row_update = gr.Row.update(visible=True)
|
397 |
|
398 |
return (err_update, # error message
|