



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     __lowercase(	):


      """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(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
      lowerCamelCase								=		parser.parse_args()

      if not hasattr(UpperCAmelCase__   ,   "func" ):
            parser.print_help()
            exit(1 )

      # Run
      lowerCamelCase								=		args.func(UpperCAmelCase__ )
      service.run()


if __name__ == "__main__":
     main()




a_						:     List[str]	     =		'\n# Transformers installation\n! pip install transformers datasets\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n'

a_						:     Any	     =		[{'type': 'code', 'content': INSTALL_CONTENT}]
a_						:     str	     =		{
    '{processor_class}': 'FakeProcessorClass',
    '{model_class}': 'FakeModelClass',
    '{object_class}': 'FakeObjectClass',
}