Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed May 18, 2023
1 parent 59800dd commit 920a39e
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
import hf_hub_ctranslate2.util.utils as utils
from hf_hub_ctranslate2.util import _download_model
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 = utils.download_model(model_name)
model_path = _download_model(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_path)

model = GeneratorCT2fromHfHub(
Expand Down

0 comments on commit 920a39e

Please sign in to comment.