From 020e786bb8c20e5382faa3e1c67ad2dc66f706a7 Mon Sep 17 00:00:00 2001 From: Talmeez Fuaad <87268503+itstalmeez@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:11:21 +0500 Subject: [PATCH] Update eval_instruct.py --- Evaluation/HumanEval/eval_instruct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Evaluation/HumanEval/eval_instruct.py b/Evaluation/HumanEval/eval_instruct.py index 71874fe..34bea56 100644 --- a/Evaluation/HumanEval/eval_instruct.py +++ b/Evaluation/HumanEval/eval_instruct.py @@ -67,7 +67,7 @@ def generate_main(args): generated_examples = [] for ex in tqdm(examples, desc='Generating'): - gen_example = generate_one(ex, lang, tokenizer, model) + gen_example = generate_one(ex, args.language, tokenizer, model) generated_examples.append(gen_example) print("Generate all over!!!") @@ -125,4 +125,4 @@ if __name__ == '__main__': os.environ["TOKENIZERS_PARALLELISM"] = "false" generate_main(args) - pass \ No newline at end of file + pass