kimvu commited on
Commit
00eb333
·
1 Parent(s): d49a95a

Update agieval.py

Browse files
Files changed (1) hide show
  1. agieval.py +1 -1
agieval.py CHANGED
@@ -289,7 +289,7 @@ class AgiEval(datasets.GeneratorBasedBuilder):
289
  "question": data["question"],
290
  "options": data["options"],
291
  "label": data["label"],
292
- "solution": data["other"]["solution"],
293
  }
294
  elif self.config.name == "math":
295
  if not data.get("level"):
 
289
  "question": data["question"],
290
  "options": data["options"],
291
  "label": data["label"],
292
+ "solution": data["other"]["solution"] if data["other"] is not None else data["label"],
293
  }
294
  elif self.config.name == "math":
295
  if not data.get("level"):