Skip to content

Commit

Permalink
Allow passing problems (dict) directly
Browse files Browse the repository at this point in the history
  • Loading branch information
benathi authored Jun 5, 2023
1 parent 9914956 commit 32aad3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mxeval/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def evaluate_functional_correctness(
results to f"{sample_file}_results.jsonl"
"""

problems = read_problems(problem_file)
if type(problem_file) is not dict:
problems = read_problems(problem_file)
else:
print("Skip reading problems -- using problem_file (dict) as problems")
problems = problem_file

# see execution.py for details
# Check the generated samples against test suites.
Expand Down

0 comments on commit 32aad3e

Please sign in to comment.