"applications/ChatGPT/vscode:/vscode.git/clone" did not exist on "4ee311c0262dfbca9b5da7e18f04dd8f1f23fe4c"
Unverified Commit a7ae2b5b authored by Dongruixuan Li's avatar Dongruixuan Li Committed by GitHub
Browse files

[eval-hotfix] set few_shot_data to None when few shot is disabled (#5422)

parent 049121d1
......@@ -201,7 +201,7 @@ class AGIEvalDataset(BaseDataset):
for file in files:
dataset_name = os.path.basename(file)[0 : -len(".jsonl")]
few_shot_data = []
few_shot_data = None
if few_shot:
# process demo once if it is few-shot-CoT
few_shot_data = combine_prompt(prompt_path, dataset_name, load_explanation=False, chat_mode=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment