Skip to content

Commit d73c007

Browse files
committed
temporary wrapper: apply_transcrition_request
1 parent facaae7 commit d73c007

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/transformers/models/voxtral/processing_voxtral.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
from ...processing_utils import AllKwargsForChatTemplate, AudioKwargs, ProcessingKwargs, ProcessorMixin, Unpack
3434
from ...tokenization_utils_base import PreTokenizedInput, TextInput
3535

36+
import warnings
37+
3638

3739
logger = logging.get_logger(__name__)
3840

@@ -431,6 +433,17 @@ def apply_transcription_request(
431433

432434
return texts
433435

436+
# Deprecated typo'd method for backward compatibility
437+
def apply_transcrition_request(self, *args, **kwargs):
438+
"""
439+
Deprecated typo'd method. Use `apply_transcription_request` instead.
440+
"""
441+
warnings.warn(
442+
"`apply_transcrition_request` is deprecated due to a typo and will be removed in a future release. Please use `apply_transcription_request` instead.",
443+
FutureWarning,
444+
)
445+
return self.apply_transcription_request(*args, **kwargs)
446+
434447
def batch_decode(self, *args, **kwargs):
435448
"""
436449
This method forwards all its arguments to MistralCommonTokenizer's [`~MistralCommonTokenizer.batch_decode`]. Please

0 commit comments

Comments
 (0)