Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil authored Jun 20, 2024
1 parent 0287b1c commit 7e39854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hf_hub_ctranslate2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""Compatability between Huggingface and Ctranslate2."""
# __all__ = ["__version__", "TranslatorCT2fromHfHub", "GeneratorCT2fromHfHub", "MultiLingualTranslatorCT2fromHfHub"]
import importlib.metadata
import os
from hf_hub_ctranslate2.translate import (
TranslatorCT2fromHfHub,
GeneratorCT2fromHfHub,
Expand All @@ -9,4 +11,4 @@
)
from hf_hub_ctranslate2.ct2_sentence_transformers import (CT2SentenceTransformer)

__version__ = "2.13.0"
__version__ = importlib.metadata.version("hf_hub_ctranslate2")

0 comments on commit 7e39854

Please sign in to comment.