Spaces:
Sleeping
Sleeping
Removed Dataframe update
Browse files
app.py
CHANGED
|
@@ -194,7 +194,7 @@ def generateSentences(gr1, gr2, att1, att2, openai_key, num_sent2gen, progress=g
|
|
| 194 |
#gr.Dropdown.update(visible=test_model_visible), # tested model selection dropdown
|
| 195 |
gr.Accordion(visible=test_model_visible, label=f"Test sentences ({len(G_TEST_SENTENCES)})"), # update
|
| 196 |
gr.update(visible=True), # Row sentences
|
| 197 |
-
gr.DataFrame
|
| 198 |
gr.update(visible=bias_gen_states[0]), # gen btn
|
| 199 |
gr.update(visible=bias_gen_states[1], value=bias_test_label) # bias btn
|
| 200 |
)
|
|
@@ -410,7 +410,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
| 410 |
gr.update(visible=tabs[1]), # tab 2
|
| 411 |
gr.Accordion(visible=bias_gen_states[1], label=f"Test sentences ({len(test_sentences)})"), # update
|
| 412 |
gr.update(visible=True), # Row sentences
|
| 413 |
-
gr.DataFrame
|
| 414 |
gr.Button.update(visible=bias_gen_states[0], value=bias_gen_label), # gen btn
|
| 415 |
gr.Button.update(visible=bias_gen_states[1], value=bias_test_label), # bias test btn
|
| 416 |
gr.update(value=', '.join(g1)), # gr1_fixed
|
|
|
|
| 194 |
#gr.Dropdown.update(visible=test_model_visible), # tested model selection dropdown
|
| 195 |
gr.Accordion(visible=test_model_visible, label=f"Test sentences ({len(G_TEST_SENTENCES)})"), # update
|
| 196 |
gr.update(visible=True), # Row sentences
|
| 197 |
+
gr.DataFrame(value=G_TEST_SENTENCES), #update DataFrame test sentences
|
| 198 |
gr.update(visible=bias_gen_states[0]), # gen btn
|
| 199 |
gr.update(visible=bias_gen_states[1], value=bias_test_label) # bias btn
|
| 200 |
)
|
|
|
|
| 410 |
gr.update(visible=tabs[1]), # tab 2
|
| 411 |
gr.Accordion(visible=bias_gen_states[1], label=f"Test sentences ({len(test_sentences)})"), # update
|
| 412 |
gr.update(visible=True), # Row sentences
|
| 413 |
+
gr.DataFrame(value=test_sentences), #update DataFrame test sentences
|
| 414 |
gr.Button.update(visible=bias_gen_states[0], value=bias_gen_label), # gen btn
|
| 415 |
gr.Button.update(visible=bias_gen_states[1], value=bias_test_label), # bias test btn
|
| 416 |
gr.update(value=', '.join(g1)), # gr1_fixed
|