



"""simple docstring"""






import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


__snake_case				:  Union[str, Any] =       HUGGINGFACE_HUB_CACHE


__snake_case				:  Any =       "config.json"
__snake_case				:  int =       "diffusion_pytorch_model.bin"
__snake_case				:  Optional[int] =       "diffusion_flax_model.msgpack"
__snake_case				:  List[Any] =       "model.onnx"
__snake_case				:  int =       "diffusion_pytorch_model.safetensors"
__snake_case				:  str =       "weights.pb"
__snake_case				:  Union[str, Any] =       "https://huggingface.co"
__snake_case				:  Union[str, Any] =       default_cache_path
__snake_case				:  Dict =       "diffusers_modules"
__snake_case				:  str =       os.getenv('HF_MODULES_CACHE', os.path.join(hf_cache_home, 'modules'))
__snake_case				:  Optional[int] =       ["fp16", "non-ema"]
__snake_case				:  List[Any] =       ".self_attn"
'''simple docstring'''


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
