


'''simple docstring'''

from argparse import ArgumentParser

from .env import EnvironmentCommand

def _SCREAMING_SNAKE_CASE      ()       ->       Optional[Any]:






       """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(A       )

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

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

       # Run
       lowercase__      			= args.func(A       )
       service.run()


if __name__ == "__main__":
 main()








'''simple docstring'''

from ....utils import logging


lowerCamelCase							:   Optional[Any]  						=	logging.get_logger(__name__)
class   __lowerCAmelCase						(lowercase_     ):





      '''simple docstring'''






      def __init__(self    :    Optional[int]   ,						UpperCamelCase    :    Union[str, Any]   ,						UpperCamelCase    :    Optional[Any]=None   ,						UpperCamelCase    :    int=2048 ):

             '''simple docstring'''







             lowercase__      			= config.__dict__
             lowercase__      			= modal_hidden_size
             if num_labels:
                    lowercase__      			= num_labels




