Skip to content

Commit 84bf4f7

Browse files
chakravarthik27pratacosmin
authored andcommitted
fix: remove unused imports in health_bench_annotator and health_bench_scenario
1 parent 692114d commit 84bf4f7

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/helm/benchmark/annotation/health_bench_annotator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from helm.benchmark.adaptation.request_state import RequestState
3131
from helm.clients.auto_client import AutoClient
3232
from helm.common.hierarchical_logger import hwarn, hlog
33-
from helm.common.request import Request
3433

3534
PROMPT_TEMPLATE = """
3635
Your job is to look at a conversation and a rubric item, and score the last turn (i.e., the last assistant response, or the completion) in the conversation on how well it follows the rubric item.
@@ -387,7 +386,7 @@ def annotate(self, request_state: RequestState) -> Dict[str, Any]:
387386
except Exception as e:
388387
hlog(f"ERROR evaluating with LLM {annotator_name}: {e}")
389388
failed_counts[annotator_name] += 1
390-
## merge annotation score with evaluation score
389+
# merge annotation score with evaluation score
391390
if evaluate_score is not None:
392391
score = (score + evaluate_score / 10) / 2
393392
overall_score[annotator_name] = {

src/helm/benchmark/scenarios/health_bench_scenario.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import json
2626
import os
2727
from typing import List
28-
import zipfile
2928
import requests
3029

3130
from helm.benchmark.presentation.taxonomy_info import TaxonomyInfo

0 commit comments

Comments
 (0)