Unverified Commit a4616c67 authored by Sanchit Gandhi's avatar Sanchit Gandhi Committed by GitHub
Browse files

[Whisper] Fix pipeline test (#27442)

parent b86c54d9
...@@ -873,7 +873,7 @@ class AutomaticSpeechRecognitionPipelineTests(unittest.TestCase): ...@@ -873,7 +873,7 @@ class AutomaticSpeechRecognitionPipelineTests(unittest.TestCase):
# 2. English-only Whisper does not accept the language argument # 2. English-only Whisper does not accept the language argument
with self.assertRaisesRegex( with self.assertRaisesRegex(
ValueError, 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.", "pass `is_multilingual=True` to generate, or update the generation config.",
): ):
_ = speech_recognizer(filename, generate_kwargs={"language": "en"}) _ = speech_recognizer(filename, generate_kwargs={"language": "en"})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment