





'''simple docstring'''



from ..utils import DummyObject, requires_backends






class 							__lowercase       (      metaclass=lowerCAmelCase__						):







	'''simple docstring'''

	a    :				Union[str, Any]											=       ["torch", "transformers", "onnx"]


	def __init__(self     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							List[Any]:







				'''simple docstring'''





				requires_backends(self     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							List[str]:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Dict:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )






class 							__lowercase       (      metaclass=lowerCAmelCase__						):







	'''simple docstring'''

	a    :				Any											=       ["torch", "transformers", "onnx"]


	def __init__(self     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Optional[Any]:







				'''simple docstring'''





				requires_backends(self     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							int:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Dict:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )






class 							__lowercase       (      metaclass=lowerCAmelCase__						):







	'''simple docstring'''

	a    :				Optional[int]											=       ["torch", "transformers", "onnx"]


	def __init__(self     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							int:







				'''simple docstring'''





				requires_backends(self     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							str:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Any:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )






class 							__lowercase       (      metaclass=lowerCAmelCase__						):







	'''simple docstring'''

	a    :				List[Any]											=       ["torch", "transformers", "onnx"]


	def __init__(self     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Optional[int]:







				'''simple docstring'''





				requires_backends(self     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							List[str]:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							List[str]:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )






class 							__lowercase       (      metaclass=lowerCAmelCase__						):







	'''simple docstring'''

	a    :				Tuple											=       ["torch", "transformers", "onnx"]


	def __init__(self     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							List[str]:







				'''simple docstring'''





				requires_backends(self     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							List[str]:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Tuple:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )






class 							__lowercase       (      metaclass=lowerCAmelCase__						):







	'''simple docstring'''

	a    :				List[str]											=       ["torch", "transformers", "onnx"]


	def __init__(self     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Optional[Any]:







				'''simple docstring'''





				requires_backends(self     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							Any:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )


	@classmethod
	def 						_UpperCAmelCase     (cls     ,*_lowerCamelCase     ,**_lowerCamelCase )							->							str:







				'''simple docstring'''





				requires_backends(cls     ,['''torch''', '''transformers''', '''onnx'''] )












'''simple docstring'''



from argparse import ArgumentParser

from .env import EnvironmentCommand




def    _lowerCAmelCase						(				):
			__lowercase										=							ArgumentParser('''Diffusers CLI tool'''		,       usage='''diffusers-cli <command> [<args>]'''				)
			__lowercase										=							parser.add_subparsers(help='''diffusers-cli command helpers'''				)

			# Register commands
			EnvironmentCommand.register_subcommand(lowerCamelCase_				)

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

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

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


if __name__ == "__main__":
	main()





