Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a4616c67
Unverified
Commit
a4616c67
authored
Nov 14, 2023
by
Sanchit Gandhi
Committed by
GitHub
Nov 14, 2023
Browse files
[Whisper] Fix pipeline test (#27442)
parent
b86c54d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/pipelines/test_pipelines_automatic_speech_recognition.py
.../pipelines/test_pipelines_automatic_speech_recognition.py
+1
-1
No files found.
tests/pipelines/test_pipelines_automatic_speech_recognition.py
View file @
a4616c67
...
...
@@ -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 `lang
a
uge` for an English-only model. If the model is intended to be multilingual, "
"Cannot specify `task` or `langu
a
ge` 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"
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment