Spaces:
Runtime error
Runtime error
invert process displaying to the right
Browse files
app.py
CHANGED
|
@@ -160,7 +160,7 @@ def infer(image, model_selection, ratio_choice, overlap_width):
|
|
| 160 |
negative_pooled_prompt_embeds=negative_pooled_prompt_embeds,
|
| 161 |
image=cnet_image,
|
| 162 |
):
|
| 163 |
-
yield
|
| 164 |
|
| 165 |
image = image.convert("RGBA")
|
| 166 |
cnet_image.paste(image, (0, 0), mask)
|
|
@@ -218,7 +218,7 @@ def infer(image, model_selection, ratio_choice, overlap_width):
|
|
| 218 |
negative_pooled_prompt_embeds=negative_pooled_prompt_embeds,
|
| 219 |
image=cnet_image,
|
| 220 |
):
|
| 221 |
-
yield
|
| 222 |
|
| 223 |
image = image.convert("RGBA")
|
| 224 |
cnet_image.paste(image, (0, 0), mask)
|
|
|
|
| 160 |
negative_pooled_prompt_embeds=negative_pooled_prompt_embeds,
|
| 161 |
image=cnet_image,
|
| 162 |
):
|
| 163 |
+
yield cnet_image, image
|
| 164 |
|
| 165 |
image = image.convert("RGBA")
|
| 166 |
cnet_image.paste(image, (0, 0), mask)
|
|
|
|
| 218 |
negative_pooled_prompt_embeds=negative_pooled_prompt_embeds,
|
| 219 |
image=cnet_image,
|
| 220 |
):
|
| 221 |
+
yield cnet_image, image
|
| 222 |
|
| 223 |
image = image.convert("RGBA")
|
| 224 |
cnet_image.paste(image, (0, 0), mask)
|