From b8152a5cec54d348a58df6a351e717d229c58e5b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 14:45:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/routes/inference.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/studio/backend/routes/inference.py b/studio/backend/routes/inference.py index eb6ae19710..4c014ea122 100644 --- a/studio/backend/routes/inference.py +++ b/studio/backend/routes/inference.py @@ -2399,7 +2399,9 @@ async def diffusion_generate( # vae_scale_factor * 2 multiples internally, so the actual PNG can # differ from the requested dims. Report the real image size so # the metadata caption matches the bytes on the wire. - actual_w, actual_h = (image.size if hasattr(image, "size") else (payload.width, payload.height)) + actual_w, actual_h = ( + image.size if hasattr(image, "size") else (payload.width, payload.height) + ) return DiffusionGenerateResponse( image_b64 = encode_png_base64(image), image_mime = "image/png",