mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
commit
2077dd5173
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
@ -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": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue