From 42e6f356a9e773982a50b4fd6e21cfdd60400672 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 4 Jul 2023 18:48:07 -0500 Subject: [PATCH] fix(api): unwrap results of img2img chain --- api/onnx_web/diffusers/run.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/onnx_web/diffusers/run.py b/api/onnx_web/diffusers/run.py index 183ee9bb..07ace45e 100644 --- a/api/onnx_web/diffusers/run.py +++ b/api/onnx_web/diffusers/run.py @@ -171,9 +171,7 @@ def run_img2img_pipeline( # run and append the filtered source progress = job.get_progress_callback() - images = [ - chain(job, server, params, [source], callback=progress), - ] + images = chain(job, server, params, [source], callback=progress), if source_filter is not None and source_filter != "none": images.append(source)