Add many missing spaces in adjacent strings (#26751)
Add missing spaces in adjacent strings
This commit is contained in:
@@ -1172,7 +1172,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 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)
|
||||
|
||||
@@ -375,7 +375,7 @@ def main():
|
||||
|
||||
if data_args.max_seq_length > tokenizer.model_max_length:
|
||||
logger.warning(
|
||||
f"The max_seq_length passed ({data_args.max_seq_length}) is larger than the maximum length for the"
|
||||
f"The max_seq_length passed ({data_args.max_seq_length}) is larger than the maximum length for the "
|
||||
f"model ({tokenizer.model_max_length}). Using max_seq_length={tokenizer.model_max_length}."
|
||||
)
|
||||
max_seq_length = min(data_args.max_seq_length, tokenizer.model_max_length)
|
||||
|
||||
Reference in New Issue
Block a user