Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -305,9 +305,9 @@ def startBiasTest(test_sentences_df, gr1, gr2, att1, att2, model_name, progress=
|
|
305 |
att_freqs = {}
|
306 |
for att in test_sentences_df["Attribute term"].tolist():
|
307 |
if att in att_freqs:
|
308 |
-
att_freqs[att] = 1
|
309 |
-
else:
|
310 |
att_freqs[att] += 1
|
|
|
|
|
311 |
|
312 |
# 1. bias specification
|
313 |
bias_spec = getTermsFromGUI(gr1, gr2, att1, att2)
|
|
|
305 |
att_freqs = {}
|
306 |
for att in test_sentences_df["Attribute term"].tolist():
|
307 |
if att in att_freqs:
|
|
|
|
|
308 |
att_freqs[att] += 1
|
309 |
+
else:
|
310 |
+
att_freqs[att] = 1
|
311 |
|
312 |
# 1. bias specification
|
313 |
bias_spec = getTermsFromGUI(gr1, gr2, att1, att2)
|