Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -347,8 +347,12 @@ def startBiasTest(test_sentences_df, gr1, gr2, att1, att2, model_name, progress=
|
|
347 |
model_bias_HTML = bloombergViz(bias_stats_dict['model_bias'])
|
348 |
|
349 |
per_attrib_bias_HTML = ""
|
|
|
350 |
for att, score in attrib_by_score.items():
|
351 |
per_attrib_bias_HTML += att_bloombergViz(att, score)
|
|
|
|
|
|
|
352 |
|
353 |
# bias score
|
354 |
#test_pairs_df['bias_score'] = 0
|
|
|
347 |
model_bias_HTML = bloombergViz(bias_stats_dict['model_bias'])
|
348 |
|
349 |
per_attrib_bias_HTML = ""
|
350 |
+
let num_atts = 0
|
351 |
for att, score in attrib_by_score.items():
|
352 |
per_attrib_bias_HTML += att_bloombergViz(att, score)
|
353 |
+
num_atts += 1
|
354 |
+
if num_atts >= 8:
|
355 |
+
break
|
356 |
|
357 |
# bias score
|
358 |
#test_pairs_df['bias_score'] = 0
|