



'''simple docstring'''



from argparse import ArgumentParser

from .add_new_model import AddNewModelCommand
from .add_new_model_like import AddNewModelLikeCommand
from .convert import ConvertCommand
from .download import DownloadCommand
from .env import EnvironmentCommand
from .lfs import LfsCommands
from .pt_to_tf import PTtoTFCommand
from .run import RunCommand
from .serving import ServeCommand
from .user import UserCommands



def   _A       (   ):



							"""simple docstring"""



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

							# Register commands
							ConvertCommand.register_subcommand(_lowerCAmelCase					)
							DownloadCommand.register_subcommand(_lowerCAmelCase					)
							EnvironmentCommand.register_subcommand(_lowerCAmelCase					)
							RunCommand.register_subcommand(_lowerCAmelCase					)
							ServeCommand.register_subcommand(_lowerCAmelCase					)
							UserCommands.register_subcommand(_lowerCAmelCase					)
							AddNewModelCommand.register_subcommand(_lowerCAmelCase					)
							AddNewModelLikeCommand.register_subcommand(_lowerCAmelCase					)
							LfsCommands.register_subcommand(_lowerCAmelCase					)
							PTtoTFCommand.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()








'''simple docstring'''



def   _A       (   _lowerCAmelCase					):



							"""simple docstring"""



							if not isinstance(_lowerCAmelCase  ,   _lowerCAmelCase					):
														raise TypeError('only integers accepted as input'					)
							else:
														__lowercase       	=str(abs(_lowerCAmelCase					)					)
														__lowercase       	=[list(_lowerCAmelCase					) for char in range(len(_lowerCAmelCase					)					)]
														for index in range(len(_lowerCAmelCase					)					):
																					num_transpositions[index].pop(_lowerCAmelCase					)
														return max(
														    int(''.join(list(_lowerCAmelCase					)					)					) for transposition in num_transpositions					)


if __name__ == "__main__":
		__import__("""doctest""").testmod()



