MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / main

Function main

diffusers/src/diffusers/commands/diffusers_cli.py:22–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def main():
23 parser = ArgumentParser("Diffusers CLI tool", usage="diffusers-cli <command> [<args>]")
24 commands_parser = parser.add_subparsers(help="diffusers-cli command helpers")
25
26 # Register commands
27 EnvironmentCommand.register_subcommand(commands_parser)
28 FP16SafetensorsCommand.register_subcommand(commands_parser)
29
30 # Let's go
31 args = parser.parse_args()
32
33 if not hasattr(args, "func"):
34 parser.print_help()
35 exit(1)
36
37 # Run
38 service = args.func(args)
39 service.run()
40
41
42if __name__ == "__main__":

Callers 1

diffusers_cli.pyFile · 0.70

Calls 2

register_subcommandMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected