mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add joyai-image-edit
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+2
-2
@@ -69,7 +69,7 @@ class InternalProgressResponse(BaseModel):
|
||||
|
||||
|
||||
def api_progress(req: ProgressRequest):
|
||||
active = req.id_task == current_task
|
||||
active = (req.id_task == current_task) or (req.id_task == 'undefined' and len(shared.state.job) > 0)
|
||||
queued = req.id_task in pending_tasks
|
||||
completed = req.id_task in finished_tasks
|
||||
paused = shared.state.paused
|
||||
@@ -92,7 +92,7 @@ def api_progress(req: ProgressRequest):
|
||||
id_live_preview = -1
|
||||
textinfo = "Queued..." if queued else "Waiting..."
|
||||
|
||||
debug_log(f'Preview: job={shared.state.job} active={active} progress={step}/{steps}/{progress} image={shared.state.current_image_sampling_step} request={id_live_preview} last={shared.state.id_live_preview} job={shared.state.preview_job} elapsed={elapsed:.3f}')
|
||||
debug_log(f'Progress: job="{shared.state.job}" active={active} progress={step}/{steps}/{progress} image={shared.state.current_image_sampling_step} request={id_live_preview} last={shared.state.id_live_preview} job={shared.state.preview_job} elapsed={elapsed:.3f}')
|
||||
|
||||
if active and (req.id_live_preview != -1):
|
||||
have_image = shared.state.set_current_image()
|
||||
|
||||
Reference in New Issue
Block a user