


'''simple docstring'''

from ..models.auto import AutoModelForSeqaSeqLM, AutoTokenizer
from .base import PipelineTool





class 	snake_case       (       SCREAMING_SNAKE_CASE_     ):





  """simple docstring"""




  _lowerCamelCase						       =    """philschmid/bart-large-cnn-samsum"""
  _lowerCamelCase						       =    (
      """This is a tool that summarizes an English text. It takes an input `text` containing the text to summarize, """
      """and returns a summary of the text."""
  )
  _lowerCamelCase						       =    """summarizer"""
  _lowerCamelCase						       =    AutoTokenizer
  _lowerCamelCase						       =    AutoModelForSeqaSeqLM

  _lowerCamelCase						       =    ["""text"""]
  _lowerCamelCase						       =    ["""text"""]






  def     snake_case						(       self     ,    UpperCamelCase	):







   """simple docstring"""
   return self.pre_processor(UpperCamelCase     ,    return_tensors="pt"     ,    truncation=UpperCamelCase	)






  def     snake_case						(       self     ,    UpperCamelCase	):







   """simple docstring"""
   return self.model.generate(**UpperCamelCase	)[0]







  def     snake_case						(       self     ,    UpperCamelCase	):







   """simple docstring"""
   return self.pre_processor.decode(UpperCamelCase     ,    skip_special_tokens=UpperCamelCase     ,    clean_up_tokenization_spaces=UpperCamelCase	)








"""simple docstring"""







def     UpperCAmelCase_					(				):




			'''simple docstring'''



			_lowerCamelCase					:					str	       =    0
			for i in range(1      ,							10_01						):
						total += i**i
			return str(__a						)[-10:]


if __name__ == "__main__":
	print(solution())





