From a4616c6767b02c8c868bab08ccf56d59f861278d Mon Sep 17 00:00:00 2001 From: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:18:26 +0000 Subject: [PATCH] [Whisper] Fix pipeline test (#27442) --- tests/pipelines/test_pipelines_automatic_speech_recognition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pipelines/test_pipelines_automatic_speech_recognition.py b/tests/pipelines/test_pipelines_automatic_speech_recognition.py index ea62198e2e..df9b23b407 100644 --- a/tests/pipelines/test_pipelines_automatic_speech_recognition.py +++ b/tests/pipelines/test_pipelines_automatic_speech_recognition.py @@ -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"})