rjiang12 commited on
Commit
0a0d2b9
·
1 Parent(s): 3e00c5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)