Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Cleaner code.

comfyanonymous3c76f43057f1
diff --git a/server.py b/server.py
index 18ce54306..701c0e7a7 100644
--- a/server.py
+++ b/server.py
@@ -331,7 +331,8 @@ class PromptServer():
extra_data["client_id"] = json_data["client_id"]
if valid[0]:
prompt_id = str(uuid.uuid4())
- self.prompt_queue.put((number, prompt_id, prompt, extra_data, valid[2]))
+ outputs_to_execute = valid[2]
+ self.prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute))
return web.json_response({"prompt_id": prompt_id})
else:
print("invalid prompt:", valid[1])