





from ..utils import DummyObject, requires_backends







class    __snake_case	(							metaclass=__lowerCamelCase      ):





       '''simple docstring'''







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




       def __init__(  self			:   str							,    *A			:   List[Any]							,    **A			:   Any		):
         requires_backends(self							,    ["""torch""", """transformers""", """onnx"""]		)




       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Dict							,    *A			:   Optional[Any]							,    **A			:   Tuple		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)






       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Dict							,    *A			:   Optional[int]							,    **A			:   Tuple		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)







class    __snake_case	(							metaclass=__lowerCamelCase      ):





       '''simple docstring'''







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




       def __init__(  self			:   int							,    *A			:   List[Any]							,    **A			:   Tuple		):
         requires_backends(self							,    ["""torch""", """transformers""", """onnx"""]		)




       @classmethod
       def 							UpperCAmelCase__			(  cls			:   str							,    *A			:   Tuple							,    **A			:   Any		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)






       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Optional[Any]							,    *A			:   Dict							,    **A			:   Union[str, Any]		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)







class    __snake_case	(							metaclass=__lowerCamelCase      ):





       '''simple docstring'''







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




       def __init__(  self			:   int							,    *A			:   Any							,    **A			:   str		):
         requires_backends(self							,    ["""torch""", """transformers""", """onnx"""]		)




       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Optional[int]							,    *A			:   Union[str, Any]							,    **A			:   Any		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)






       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Union[str, Any]							,    *A			:   Union[str, Any]							,    **A			:   Optional[int]		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)







class    __snake_case	(							metaclass=__lowerCamelCase      ):





       '''simple docstring'''







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




       def __init__(  self			:   Tuple							,    *A			:   List[Any]							,    **A			:   str		):
         requires_backends(self							,    ["""torch""", """transformers""", """onnx"""]		)




       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Optional[Any]							,    *A			:   int							,    **A			:   Tuple		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)






       @classmethod
       def 							UpperCAmelCase__			(  cls			:   List[Any]							,    *A			:   int							,    **A			:   int		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)







class    __snake_case	(							metaclass=__lowerCamelCase      ):





       '''simple docstring'''







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




       def __init__(  self			:   Optional[int]							,    *A			:   Dict							,    **A			:   Tuple		):
         requires_backends(self							,    ["""torch""", """transformers""", """onnx"""]		)




       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Optional[Any]							,    *A			:   Union[str, Any]							,    **A			:   int		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)






       @classmethod
       def 							UpperCAmelCase__			(  cls			:   str							,    *A			:   List[str]							,    **A			:   List[Any]		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)







class    __snake_case	(							metaclass=__lowerCamelCase      ):





       '''simple docstring'''







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




       def __init__(  self			:   Optional[int]							,    *A			:   Optional[Any]							,    **A			:   Any		):
         requires_backends(self							,    ["""torch""", """transformers""", """onnx"""]		)




       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Optional[int]							,    *A			:   int							,    **A			:   Dict		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)






       @classmethod
       def 							UpperCAmelCase__			(  cls			:   Tuple							,    *A			:   Optional[Any]							,    **A			:   Tuple		):
         requires_backends(cls							,    ["""torch""", """transformers""", """onnx"""]		)













from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
      if not (is_transformers_available() and is_torch_available()):
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      from ...utils.dummy_torch_and_transformers_objects import (
          ImageTextPipelineOutput,
          UniDiffuserPipeline,
      )
else:
      from .modeling_text_decoder import UniDiffuserTextDecoder
      from .modeling_uvit import UniDiffuserModel, UTransformeraDModel
      from .pipeline_unidiffuser import ImageTextPipelineOutput, UniDiffuserPipeline






