Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -197,9 +197,9 @@ def submit_function(
|
|
197 |
condition_width = width // 3
|
198 |
conditions = image_grid([person_image, masked_person , cloth_image], 3, 1)
|
199 |
conditions = conditions.resize((condition_width, height), Image.NEAREST)
|
200 |
-
new_result_image = Image.new("RGB", (width + condition_width +
|
201 |
new_result_image.paste(conditions, (0, 0))
|
202 |
-
new_result_image.paste(result_image, (condition_width +
|
203 |
return new_result_image
|
204 |
|
205 |
|
|
|
197 |
condition_width = width // 3
|
198 |
conditions = image_grid([person_image, masked_person , cloth_image], 3, 1)
|
199 |
conditions = conditions.resize((condition_width, height), Image.NEAREST)
|
200 |
+
new_result_image = Image.new("RGB", (width + condition_width + 6, height))
|
201 |
new_result_image.paste(conditions, (0, 0))
|
202 |
+
new_result_image.paste(result_image, (condition_width + 6, 0))
|
203 |
return new_result_image
|
204 |
|
205 |
|