



def 	_lowerCAmelCase						(				__lowerCamelCase   :     Any		,	__lowerCamelCase   :     List[str]     ):



 """simple docstring"""





 return abs(__A     ) if a == 0 else greatest_common_divisor(b % a		,	__A     )






def 	_lowerCAmelCase						(				__lowerCamelCase   :     Tuple		,	__lowerCamelCase   :     int     ):



 """simple docstring"""





 while y:  # --> when y=0 then loop will terminate and return x as final GCD.
  __SCREAMING_SNAKE_CASE,		__SCREAMING_SNAKE_CASE       :    Dict       =	y, x % y
 return abs(__A     )






def 	_lowerCAmelCase						(				):



 """simple docstring"""





 try:
  __SCREAMING_SNAKE_CASE       :    int       =	input("Enter two integers separated by comma (,): "     ).split(","     )
  __SCREAMING_SNAKE_CASE       :    str       =	int(nums[0]     )
  __SCREAMING_SNAKE_CASE       :    List[Any]       =	int(nums[1]     )
  print(
      F"""greatest_common_divisor({num_a}, {num_a}) = """
      F"""{greatest_common_divisor(__A		,	__A     )}"""     )
  print(F"""By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(__A		,	__A     )}"""     )
 except (IndexError, UnboundLocalError, ValueError):
  print("Wrong input"     )


if __name__ == "__main__":
    main()











# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from ..models.auto import AutoModelForSeqaSeqLM, AutoTokenizer
from .base import PipelineTool

class       _SCREAMING_SNAKE_CASE	(UpperCamelCase ):
     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 :							Union[str, Any]     ,  UpperCamelCase :							Tuple				)->Tuple:
      return self.pre_processor(UpperCamelCase     ,  return_tensors="pt"     ,  truncation=UpperCamelCase				)





     def 	__snake_case    (       self :							Dict     ,  UpperCamelCase :							List[Any]				)->Optional[Any]:
      return self.model.generate(**UpperCamelCase				)[0]






     def 	__snake_case    (       self :							Tuple     ,  UpperCamelCase :							Dict				)->Optional[int]:
      return self.pre_processor.decode(UpperCamelCase     ,  skip_special_tokens=UpperCamelCase     ,  clean_up_tokenization_spaces=UpperCamelCase				)






