mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:37:00 +08:00
Add whether we have a preview_image to the progress message that gets sent to websockets api
This commit is contained in:
parent
a5e6a632f9
commit
5f5b8c5900
2
main.py
2
main.py
@ -152,7 +152,7 @@ async def run(server, address='', port=8188, verbose=True, call_on_start=None):
|
||||
def hijack_progress(server):
|
||||
def hook(value, total, preview_image):
|
||||
comfy.model_management.throw_exception_if_processing_interrupted()
|
||||
progress = {"value": value, "max": total, "prompt_id": server.last_prompt_id, "node": server.last_node_id}
|
||||
progress = {"value": value, "max": total, "prompt_id": server.last_prompt_id, "node": server.last_node_id, "preview_image": preview_image is not None}
|
||||
|
||||
server.send_sync("progress", progress, server.client_id)
|
||||
if preview_image is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user