Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def infer(
|
|
46 |
)
|
47 |
|
48 |
init_image: Image.Image = image_editor["background"].convert("RGB")
|
49 |
-
mask_image: Image.Image = image_editor["
|
50 |
|
51 |
# Downscale the image
|
52 |
init_image.thumbnail((1024, 1024))
|
|
|
46 |
)
|
47 |
|
48 |
init_image: Image.Image = image_editor["background"].convert("RGB")
|
49 |
+
mask_image: Image.Image = image_editor["layers"][0].convert("RGB")
|
50 |
|
51 |
# Downscale the image
|
52 |
init_image.thumbnail((1024, 1024))
|