Skip to content

Commit

Permalink
Merge branch 'main' into leaderboard-gemma
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudotexe committed Apr 17, 2024
2 parents 7dad82b + 9675000 commit d8366a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions fanoutqa/eval/scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ def get_qa_pairs(self) -> Iterable[tuple[DevQuestion, Optional[Answer]]]:
else:
for q in self.questions:
a = self.answers_by_id.get(q.id)
if a is None:
yield q, None
yield q, a

# scorers
Expand Down
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "fanoutqa"
version = "1.0.0"
version = "1.0.1"
authors = [
{ name = "Andrew Zhu", email = "[email protected]" },
{ name = "Alyssa Hwang", email = "[email protected]" },
Expand Down

0 comments on commit d8366a1

Please sign in to comment.