From ada7dba86f3126c0e64d0506ec68de2bc61dcc54 Mon Sep 17 00:00:00 2001 From: Michael Feil Date: Sat, 20 May 2023 01:59:28 +0200 Subject: [PATCH] fix missing import download_model --- hf_hub_ctranslate2/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hf_hub_ctranslate2/__init__.py b/hf_hub_ctranslate2/__init__.py index 21252a6..6a5ac4d 100644 --- a/hf_hub_ctranslate2/__init__.py +++ b/hf_hub_ctranslate2/__init__.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- """Compatability between Huggingface and Ctranslate2.""" -# __all__ = ["__version__", "TranslatorCT2fromHfHub", "GeneratorCT2fromHfHub", "MultiLingualTranslatorCT2fromHfHub", "_private"] +# __all__ = ["__version__", "TranslatorCT2fromHfHub", "GeneratorCT2fromHfHub", "MultiLingualTranslatorCT2fromHfHub"] from hf_hub_ctranslate2.translate import TranslatorCT2fromHfHub, GeneratorCT2fromHfHub, MultiLingualTranslatorCT2fromHfHub -from hf_hub_ctranslate2.util import _download_model __version__ = "2.0.7" \ No newline at end of file