[ASR Pipe Test] Fix CTC timestamps error message (#25727)

This commit is contained in:
Sanchit Gandhi
2023-08-24 17:58:37 +01:00
committed by GitHub
parent fd0b94fd7b
commit 0218876822
2 changed files with 2 additions and 2 deletions

View File

@@ -1150,7 +1150,7 @@ class AutomaticSpeechRecognitionPipelineTests(unittest.TestCase):
# CTC models must specify return_timestamps type - cannot set `return_timestamps=True` blindly
with self.assertRaisesRegex(
ValueError,
"^CTC can either predict character (char) level timestamps, or word level timestamps."
"^CTC can either predict character level timestamps, or word level timestamps."
"Set `return_timestamps='char'` or `return_timestamps='word'` as required.$",
):
_ = speech_recognizer(audio, return_timestamps=True)