From bf3b94c0c368e8ee6e7639de2973920ab5d4aa62 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 Jan 2025 18:00:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/llm/tech_qa.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/llm/tech_qa.py b/examples/llm/tech_qa.py index 2377c81c73ac..ae544cd15af2 100644 --- a/examples/llm/tech_qa.py +++ b/examples/llm/tech_qa.py @@ -232,7 +232,8 @@ def eval(question: str, pred: str, correct_answer: str): eval_tuples = [] for test_batch in tqdm(test_loader, desc="Testing"): preds = (inference_step(model, test_batch)) - for question, pred, label in zip(test_batch.question, preds, test_batch.label): + for question, pred, label in zip(test_batch.question, preds, + test_batch.label): eval_tuples.append((question, pred, label)) for question, pred, label in tqdm(eval_tuples, desc="Eval"): scores.append(eval(question, pred, label))