rjiang12 commited on
Commit
580f883
·
1 Parent(s): a4f417f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -595,8 +595,7 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
595
  tested_model_name, acc_test_sentences, row_sentences, test_sentences, gen_btn, bias_btn ])
596
 
597
  # Test bias
598
- bias_btn.click(fn=
599
- ,
600
  inputs=[test_sentences,group1,group2,att1,att2,tested_model_name],
601
  outputs=[bar_progress, s1_btn, s2_btn, s3_btn, tab1, tab2, tab3, model_bias_label, attribute_bias_labels, test_pairs, interpretation_msg,
602
  group1_fixed2, group2_fixed2, att1_fixed2, att2_fixed2]
 
595
  tested_model_name, acc_test_sentences, row_sentences, test_sentences, gen_btn, bias_btn ])
596
 
597
  # Test bias
598
+ bias_btn.click(fn=startBiasTest,
 
599
  inputs=[test_sentences,group1,group2,att1,att2,tested_model_name],
600
  outputs=[bar_progress, s1_btn, s2_btn, s3_btn, tab1, tab2, tab3, model_bias_label, attribute_bias_labels, test_pairs, interpretation_msg,
601
  group1_fixed2, group2_fixed2, att1_fixed2, att2_fixed2]