samuelam commited on
Commit
9200a7d
1 Parent(s): 78bcf13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -160,10 +160,10 @@ def add_new_eval(
160
  token=TOKEN
161
  )
162
 
163
- accuracy = float("{:.1f}".format(np.average([x["acc"] for x in all_scores]) * 100))
164
  coverage = float("{:.1f}".format(np.average([x["has_ans"] for x in all_scores])))
165
- em = float("{:.1f}".format(np.average([1 if x["acc"] == 1 else 0 for x in all_scores])))
166
- precision = float("{:.1f}".format(np.average([x["acc"] for x in all_scores if x["has_ans"] == 1])))
167
 
168
  eval_entry = {
169
  "Model Name": model_name,
 
160
  token=TOKEN
161
  )
162
 
163
+ accuracy = float("{:.1f}".format(np.average([x["score"] for x in all_scores]) * 100))
164
  coverage = float("{:.1f}".format(np.average([x["has_ans"] for x in all_scores])))
165
+ em = float("{:.1f}".format(np.average([1 if x["score"] == 1 else 0 for x in all_scores])))
166
+ precision = float("{:.1f}".format(np.average([x["score"] for x in all_scores if x["has_ans"] == 1])))
167
 
168
  eval_entry = {
169
  "Model Name": model_name,