Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed May 20, 2023
1 parent ada7dba commit 84c6f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_translate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from hf_hub_ctranslate2 import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub, MultiLingualTranslatorCT2fromHfHub
from hf_hub_ctranslate2.util import _download_model
from hf_hub_ctranslate2.util import utils as _utils
from transformers import AutoTokenizer


Expand Down Expand Up @@ -51,7 +51,7 @@ def test_generator(model_name="michaelfeil/ct2fast-pythia-160m"):


def test_generator_single(model_name="michaelfeil/ct2fast-pythia-160m"):
model_path = _download_model(model_name)
model_path = _utils._download_model(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_path)

model = GeneratorCT2fromHfHub(
Expand Down

0 comments on commit 84c6f50

Please sign in to comment.