Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=30, s
|
|
| 74 |
clip_skip=1
|
| 75 |
)
|
| 76 |
inpainted_image = output.images[0]
|
| 77 |
-
|
| 78 |
# Combine the original and inpainted images using the mask
|
| 79 |
combined_image = Image.composite(inpainted_image, init_image, mask_image.split()[3])
|
| 80 |
|
|
|
|
| 74 |
clip_skip=1
|
| 75 |
)
|
| 76 |
inpainted_image = output.images[0]
|
| 77 |
+
inpainted_image = inpainted_image.resize(init_image.size, resample=Image.LANCZOS)
|
| 78 |
# Combine the original and inpainted images using the mask
|
| 79 |
combined_image = Image.composite(inpainted_image, init_image, mask_image.split()[3])
|
| 80 |
|