Cleaner code.

This commit is contained in:
comfyanonymous 2023-05-20 23:06:33 -04:00
parent b8636a44aa
commit 3c76f43057
1 changed files with 2 additions and 1 deletions

View File

@ -331,7 +331,8 @@ class PromptServer():
extra_data["client_id"] = json_data["client_id"] extra_data["client_id"] = json_data["client_id"]
if valid[0]: if valid[0]:
prompt_id = str(uuid.uuid4()) 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}) return web.json_response({"prompt_id": prompt_id})
else: else:
print("invalid prompt:", valid[1]) print("invalid prompt:", valid[1])