Skip to content

Commit

Permalink
fix seamless import
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Dec 14, 2023
1 parent bd65410 commit c48787f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
TextInput,
)
from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import PaddingStrategy, logging
from .tokenization_seamless_m4t import (
SeamlessM4TTokenizer,
)
from ...utils import PaddingStrategy, is_sentencepiece_available, logging


if is_sentencepiece_available():
from .tokenization_seamless_m4t import SeamlessM4TTokenizer
else:
SeamlessM4TTokenizer = None

logger = logging.get_logger(__name__)

Expand Down

0 comments on commit c48787f

Please sign in to comment.