RKocielnik commited on
Commit
807c974
·
verified ·
1 Parent(s): deb9d9a

Removed Dataframe update

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.update(value=G_TEST_SENTENCES), #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,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.update(value=test_sentences), #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
 
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