Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
imenelydiaker committed Jul 23, 2024
1 parent cbecd64 commit a483e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mteb/tasks/Image/ZeroshotClassification/eng/Country211.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import os
import itertools
import os

from mteb.abstasks import AbsTaskZeroshotClassification
from mteb.abstasks.TaskMetadata import TaskMetadata
Expand Down
4 changes: 2 additions & 2 deletions mteb/tasks/Image/ZeroshotClassification/eng/PatchCamelyon.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ def get_candidate_labels(self) -> list[str]:
path = os.path.dirname(__file__)
with open(os.path.join(path, "templates/PatchCamelyon_labels.txt")) as f:
labels = f.readlines()

prompts = [
[f"a histopathology slide showing {c}" for c in labels],
[f"histopathology image of {c}" for c in labels]
[f"histopathology image of {c}" for c in labels],
]

return list(itertools.chain(*prompts))

0 comments on commit a483e3b

Please sign in to comment.