




'''simple docstring'''
from ..utils import DummyObject, requires_backends
class   __UpperCAmelCase				(     metaclass=lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		["""torch""", """transformers""", """onnx"""]



					def __init__(	self     :						List[str]      ,       *_lowercase     :						str      ,       **_lowercase     :						Dict)    ->							str:
								requires_backends(self      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Tuple      ,       *_lowercase     :						Tuple      ,       **_lowercase     :						Any)    ->							Tuple:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Any      ,       *_lowercase     :						Tuple      ,       **_lowercase     :						List[Any])    ->							Optional[int]:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])





class   __UpperCAmelCase				(     metaclass=lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		["""torch""", """transformers""", """onnx"""]



					def __init__(	self     :						List[Any]      ,       *_lowercase     :						List[str]      ,       **_lowercase     :						Optional[Any])    ->							str:
								requires_backends(self      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Union[str, Any]      ,       *_lowercase     :						str      ,       **_lowercase     :						str)    ->							Optional[int]:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Union[str, Any]      ,       *_lowercase     :						str      ,       **_lowercase     :						Dict)    ->							List[Any]:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])





class   __UpperCAmelCase				(     metaclass=lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		["""torch""", """transformers""", """onnx"""]



					def __init__(	self     :						Union[str, Any]      ,       *_lowercase     :						Optional[Any]      ,       **_lowercase     :						List[str])    ->							str:
								requires_backends(self      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Optional[Any]      ,       *_lowercase     :						List[Any]      ,       **_lowercase     :						Tuple)    ->							Any:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Optional[int]      ,       *_lowercase     :						Union[str, Any]      ,       **_lowercase     :						List[Any])    ->							Dict:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])





class   __UpperCAmelCase				(     metaclass=lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		["""torch""", """transformers""", """onnx"""]



					def __init__(	self     :						Optional[Any]      ,       *_lowercase     :						List[str]      ,       **_lowercase     :						Tuple)    ->							Dict:
								requires_backends(self      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Union[str, Any]      ,       *_lowercase     :						Tuple      ,       **_lowercase     :						int)    ->							Dict:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						List[Any]      ,       *_lowercase     :						int      ,       **_lowercase     :						Dict)    ->							List[Any]:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])





class   __UpperCAmelCase				(     metaclass=lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		["""torch""", """transformers""", """onnx"""]



					def __init__(	self     :						Dict      ,       *_lowercase     :						Union[str, Any]      ,       **_lowercase     :						int)    ->							Tuple:
								requires_backends(self      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Union[str, Any]      ,       *_lowercase     :						Dict      ,       **_lowercase     :						Optional[int])    ->							Dict:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Any      ,       *_lowercase     :						List[str]      ,       **_lowercase     :						Optional[int])    ->							Dict:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])





class   __UpperCAmelCase				(     metaclass=lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		["""torch""", """transformers""", """onnx"""]



					def __init__(	self     :						Any      ,       *_lowercase     :						Optional[int]      ,       **_lowercase     :						Tuple)    ->							Dict:
								requires_backends(self      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						Optional[Any]      ,       *_lowercase     :						Optional[int]      ,       **_lowercase     :						Optional[int])    ->							str:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])



					@classmethod
					def     __snake_case						(	cls     :						str      ,       *_lowercase     :						str      ,       **_lowercase     :						Dict)    ->							Optional[int]:
								requires_backends(cls      ,       ['torch', 'transformers', 'onnx'])










'''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 			lowerCamelCase(							)		->		int:
			A_									= ArgumentParser('Transformers CLI tool'       ,usage='transformers-cli <command> [<args>]'     )
			A_									= parser.add_subparsers(help='transformers-cli command helpers'     )

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

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

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

			# Run
			A_									= args.func(SCREAMING_SNAKE_CASE_     )
			service.run()


if __name__ == "__main__":
							main()




