Skip to content

Simple example of using g diffuser frontend as a Python API with gRPC server

Christopher Friesen edited this page Oct 22, 2022 · 3 revisions

import extensions.g_diffuser_lib as gdl

parser = gdl.get_args_parser() args = parser.parse_args() gdl.start_grpc_server(args)

args.prompt = "greg rutkowski in space" my_samples = gdl.get_samples(args)

Clone this wiki locally