rjiang12 commited on
Commit
4c209ca
·
1 Parent(s): 15ec59c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -351,7 +351,7 @@ def startBiasTest(test_sentences_df, gr1, gr2, att1, att2, model_name, progress=
351
  attrib_by_score = dict(sorted(per_attrib_bias.items(), key=lambda item: item[1], reverse=True))
352
 
353
  # model_bias_HTML = bloombergViz(bias_stats_dict['model_bias'])
354
- print(f"attrib_by_score: {attrib_by_score}")
355
  per_attrib_bias_HTML_stereo = ""
356
  num_atts = 0
357
  for att, score in attrib_by_score.items():
@@ -393,8 +393,6 @@ def startBiasTest(test_sentences_df, gr1, gr2, att1, att2, model_name, progress=
393
  score_templates_df = score_templates_df[['Stereotyped','Attribute','Groups','Template']]
394
  num_sentences = score_templates_df.shape[0]
395
 
396
- print(f"score_templates_df: {score_templates_df}")
397
-
398
  interpret_msg = bt_mgr._constructInterpretationMsg(bias_spec, num_sentences,
399
  model_name, bias_stats_dict, per_attrib_bias,
400
  score_templates_df
 
351
  attrib_by_score = dict(sorted(per_attrib_bias.items(), key=lambda item: item[1], reverse=True))
352
 
353
  # model_bias_HTML = bloombergViz(bias_stats_dict['model_bias'])
354
+
355
  per_attrib_bias_HTML_stereo = ""
356
  num_atts = 0
357
  for att, score in attrib_by_score.items():
 
393
  score_templates_df = score_templates_df[['Stereotyped','Attribute','Groups','Template']]
394
  num_sentences = score_templates_df.shape[0]
395
 
 
 
396
  interpret_msg = bt_mgr._constructInterpretationMsg(bias_spec, num_sentences,
397
  model_name, bias_stats_dict, per_attrib_bias,
398
  score_templates_df