add joyai-image-edit

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-05-08 14:44:00 +02:00
parent 2e50671d69
commit 82e9745c65
10 changed files with 103 additions and 15 deletions
+2 -2
View File
@@ -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()