From 9062d1bab2033dc7263d4621a0868c3dcf176554 Mon Sep 17 00:00:00 2001 From: Stephen Kaplan Date: Mon, 1 May 2023 08:54:57 -0400 Subject: [PATCH] Fix grammar error in summarization pipeline (#23080) Fix minor grammar issue --- src/transformers/pipelines/text2text_generation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/pipelines/text2text_generation.py b/src/transformers/pipelines/text2text_generation.py index bb8e860ce9..dbd45e6ff1 100644 --- a/src/transformers/pipelines/text2text_generation.py +++ b/src/transformers/pipelines/text2text_generation.py @@ -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})" )