mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[Whisper] Fix pipeline test (#27442)
This commit is contained in:
parent
b86c54d9ff
commit
a4616c6767
@ -873,7 +873,7 @@ class AutomaticSpeechRecognitionPipelineTests(unittest.TestCase):
|
||||
# 2. English-only Whisper does not accept the language argument
|
||||
with self.assertRaisesRegex(
|
||||
ValueError,
|
||||
"Cannot specify `task` or `langauge` for an English-only model. If the model is intended to be multilingual, "
|
||||
"Cannot specify `task` or `language` for an English-only model. If the model is intended to be multilingual, "
|
||||
"pass `is_multilingual=True` to generate, or update the generation config.",
|
||||
):
|
||||
_ = speech_recognizer(filename, generate_kwargs={"language": "en"})
|
||||
|
Loading…
Reference in New Issue
Block a user