Skip to content

Commit

Permalink
[Whisper] Fix pipeline test (huggingface#27442)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchit-gandhi authored and Saibo Geng committed Nov 15, 2023
1 parent edd6cf5 commit 968f325
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def test_whisper_language(self):
# 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"})
Expand Down

0 comments on commit 968f325

Please sign in to comment.