Skip to content

Commit

Permalink
Fix transfomers import in the evaluator (huggingface#291)
Browse files Browse the repository at this point in the history
* Fix transfomers import in the evaluator

* Fix imports
  • Loading branch information
mathemakitten authored Sep 14, 2022
1 parent eef73da commit abccc58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/evaluate/evaluator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

# Lint as: python3
from datasets import Dataset, load_dataset
from transformers import Pipeline

from evaluate.evaluator.utils import choose_split

Expand All @@ -32,7 +31,7 @@

try:
import transformers
from transformers import pipeline
from transformers import Pipeline, pipeline

TRANSFORMERS_AVAILABLE = True
except ImportError:
Expand Down

0 comments on commit abccc58

Please sign in to comment.