Skip to content

Commit

Permalink
build: fix missing answers
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Apr 16, 2024
1 parent 1d153a7 commit 6f92bb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions leaderboard-submissions/hydrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def read_jsonl_answers(fp: Path) -> List[dict]:
assert "id" in ans, "All generated answers must contain the 'id' key"
assert "answer" in ans, "All generated answers must contain the 'answer' key"
assert isinstance(ans["answer"], str), "All generated answers must be strings"
answers.append(ans)
return answers


Expand Down

0 comments on commit 6f92bb0

Please sign in to comment.