Clémentine commited on
Commit
d699a55
·
1 Parent(s): d5432ec
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ def add_new_eval(
181
  "score_level3": scores[3]/num_questions[3],
182
  "date": datetime.datetime.today().strftime('%Y-%m-%d')
183
  }
184
- if len(scores["all"]) != ref_scores_len[val_or_test]:
185
  return format_error(f"Your submission has {len(scores['all'])} questions for the {val_or_test} set, but it should have {ref_scores_len[val_or_test]}. Please check your submission.")
186
 
187
  eval_results[val_or_test] = eval_results[val_or_test].add_item(eval_entry)
 
181
  "score_level3": scores[3]/num_questions[3],
182
  "date": datetime.datetime.today().strftime('%Y-%m-%d')
183
  }
184
+ if num_questions[1] + num_questions[2] + num_questions[3] != ref_scores_len[val_or_test]:
185
  return format_error(f"Your submission has {len(scores['all'])} questions for the {val_or_test} set, but it should have {ref_scores_len[val_or_test]}. Please check your submission.")
186
 
187
  eval_results[val_or_test] = eval_results[val_or_test].add_item(eval_entry)