Initialisation du repository de Beta

This commit is contained in:
Mathis 2026-02-06 22:23:20 +01:00
commit 14985f6dbb
9469 changed files with 1903273 additions and 0 deletions

View file

@ -0,0 +1,18 @@
"""A collection of models which don't fit in the generic classes :class:`ctranslate2.Translator`
and :class:`ctranslate2.Generator`.
"""
try:
from ctranslate2._ext import (
Wav2Vec2,
Wav2Vec2Bert,
Whisper,
WhisperGenerationResult,
WhisperGenerationResultAsync,
)
except ImportError as e:
# Allow using the Python package without the compiled extension.
if "No module named" in str(e):
pass
else:
raise