mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 10:12:23 +06:00
Fix grammar error in summarization pipeline (#23080)
Fix minor grammar issue
This commit is contained in:
parent
849367ccf7
commit
9062d1bab2
@ -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})"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user