[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-25 14:45:49 +00:00
commit b8152a5cec

View file

@ -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",