





"""simple docstring"""


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__    (					)					->		List[str]:




      """simple docstring"""

      _UpperCamelCase      :	int						=       ArgumentParser("Transformers CLI tool"		,usage="transformers-cli <command> [<args>]"			)
      _UpperCamelCase      :	List[Any]						=       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
      _UpperCamelCase      :	Optional[Any]						=       parser.parse_args()

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

      # Run
      _UpperCamelCase      :	str						=       args.func(lowercase_			)
      service.run()


if __name__ == "__main__":
  main()







"""simple docstring"""


lowerCamelCase__				  =   "\n# Installazione di Transformers\n! pip install transformers datasets\n# Per installare dalla fonte invece dell'ultima versione rilasciata, commenta il comando sopra e\n# rimuovi la modalità commento al comando seguente.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

lowerCamelCase__				  =   [{"type": "code", "content": INSTALL_CONTENT}]
lowerCamelCase__				  =   {
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}
