Fix grammar error in summarization pipeline (#23080)

Fix minor grammar issue
This commit is contained in:
Stephen Kaplan 2023-05-01 08:54:57 -04:00 committed by GitHub
parent 849367ccf7
commit 9062d1bab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,7 @@ class SummarizationPipeline(Text2TextGenerationPipeline):
if input_length < max_length:
logger.warning(
f"Your max_length is set to {max_length}, but you input_length is only {input_length}. You might "
f"Your max_length is set to {max_length}, but your input_length is only {input_length}. You might "
f"consider decreasing max_length manually, e.g. summarizer('...', max_length={input_length//2})"
)