from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


_lowerCAmelCase       =		{"configuration_unispeech": ["UNISPEECH_PRETRAINED_CONFIG_ARCHIVE_MAP", "UniSpeechConfig"]}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					_lowerCAmelCase       =		[
					    "UNISPEECH_PRETRAINED_MODEL_ARCHIVE_LIST",
					    "UniSpeechForCTC",
					    "UniSpeechForPreTraining",
					    "UniSpeechForSequenceClassification",
					    "UniSpeechModel",
					    "UniSpeechPreTrainedModel",
					]

if TYPE_CHECKING:
					from .configuration_unispeech import UNISPEECH_PRETRAINED_CONFIG_ARCHIVE_MAP, UniSpeechConfig

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_unispeech import (
										    UNISPEECH_PRETRAINED_MODEL_ARCHIVE_LIST,
										    UniSpeechForCTC,
										    UniSpeechForPreTraining,
										    UniSpeechForSequenceClassification,
										    UniSpeechModel,
										    UniSpeechPreTrainedModel,
										)

else:
					import sys

					_lowerCAmelCase       =		_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)

from argparse import ArgumentParser

from .env import EnvironmentCommand





def 							UpperCAmelCase		(       ):







				"""simple docstring"""



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

				# Register commands
				EnvironmentCommand.register_subcommand(lowercase				)

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

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

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


if __name__ == "__main__":
		main()