Skip to content

Commit

Permalink
Merge pull request geekan#1554 from didiforgithub/main
Browse files Browse the repository at this point in the history
Fix bug for AFLOW.
  • Loading branch information
geekan authored Oct 30, 2024
2 parents fd7feb5 + a01156d commit 2077dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metagpt/ext/aflow/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CodeDataset(Enum):


def extract_test_cases_from_jsonl(entry_point: str, dataset: CodeDataset = CodeDataset.HUMAN_EVAL):
if dataset == CodeDataset.HUMAN_EVAL:
if dataset == CodeDataset.HUMAN_EVAL.value:
file_path = "metagpt/ext/aflow/data/humaneval_public_test.jsonl"
# Retain the original hardcoded test cases
hardcoded_cases = {
Expand All @@ -31,7 +31,7 @@ def extract_test_cases_from_jsonl(entry_point: str, dataset: CodeDataset = CodeD
"sum_squares": "",
"starts_one_ends": "",
}
elif dataset == CodeDataset.MBPP:
elif dataset == CodeDataset.MBPP.value:
file_path = "metagpt/ext/aflow/data/mbpp_public_test.jsonl"
hardcoded_cases = {
"remove_odd": "",
Expand Down

0 comments on commit 2077dd5

Please sign in to comment.