

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 							__lowerCAmelCase     (							)		->				Optional[Any]:
 '''simple docstring'''


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

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

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

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

 # Run
 SCREAMING_SNAKE_CASE		    =      args.func(_UpperCamelCase						)
 service.run()


if __name__ == "__main__":
      main()




import baseaa


def 							__lowerCAmelCase     (							_UpperCamelCase		:	str						)		->				bytes:
 '''simple docstring'''


 return baseaa.aaaencode(string.encode('utf-8'						)						)


def 							__lowerCAmelCase     (							_UpperCamelCase		:	bytes						)		->				str:
 '''simple docstring'''


 return baseaa.aaadecode(_UpperCamelCase						).decode('utf-8'						)


if __name__ == "__main__":
      import doctest

      doctest.testmod()

