




from argparse import ArgumentParser

from .add_new_model import AddNewModelCommand
from .add_new_model_like import AddNewModelLikeCommand
from .convert import ConvertCommand
from .download import DownloadCommand
from .env import EnvironmentCommand
from .lfs import LfsCommands
from .pt_to_tf import PTtoTFCommand
from .run import RunCommand
from .serving import ServeCommand
from .user import UserCommands

def      _SCREAMING_SNAKE_CASE     (				):


      '''simple docstring'''



      lowerCamelCase_							=       ArgumentParser('Transformers CLI tool'      ,				usage='transformers-cli <command> [<args>]'	)
      lowerCamelCase_							=       parser.add_subparsers(help='transformers-cli command helpers'	)

      # Register commands
      ConvertCommand.register_subcommand(lowercase	)
      DownloadCommand.register_subcommand(lowercase	)
      EnvironmentCommand.register_subcommand(lowercase	)
      RunCommand.register_subcommand(lowercase	)
      ServeCommand.register_subcommand(lowercase	)
      UserCommands.register_subcommand(lowercase	)
      AddNewModelCommand.register_subcommand(lowercase	)
      AddNewModelLikeCommand.register_subcommand(lowercase	)
      LfsCommands.register_subcommand(lowercase	)
      PTtoTFCommand.register_subcommand(lowercase	)

      # Let's go
      lowerCamelCase_							=       parser.parse_args()

      if not hasattr(lowercase      ,				'func'	):
            parser.print_help()
            exit(1	)

      # Run
      lowerCamelCase_							=       args.func(lowercase	)
      service.run()


if __name__ == "__main__":
 main()





from collections.abc import Sequence
def 							SCREAMING_SNAKE_CASE_	(					UpperCAmelCase_	:     Sequence[int] | None = None				)			->						int:
       if nums is None or not nums:
              raise ValueError('''Input sequence should not be empty'''				)

       SCREAMING_SNAKE_CASE_							:				Tuple		=nums[0]
       for i in range(1			,							len(UpperCAmelCase_				)				):
              SCREAMING_SNAKE_CASE_							:				Any		=nums[i]
              SCREAMING_SNAKE_CASE_							:				Optional[int]		=max(UpperCAmelCase_			,							ans + num			,							UpperCAmelCase_				)

       return ans


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 # Try on a sample input from the user
 _lowercase											=    int(input("""Enter number of elements : """).strip())
 _lowercase											=    list(map(int, input("""\nEnter the numbers : """).strip().split()))[:n]
 print(max_subsequence_sum(array))
