Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -272,9 +272,11 @@ def infer(
|
|
272 |
# If it's a single image (not a list), convert to list
|
273 |
if not isinstance(input_images, list):
|
274 |
input_images = [input_images]
|
|
|
|
|
275 |
|
276 |
# Concatenate images horizontally
|
277 |
-
concatenated_image = concatenate_images(
|
278 |
|
279 |
if concatenated_image is None:
|
280 |
raise gr.Error("Failed to process the input images.")
|
|
|
272 |
# If it's a single image (not a list), convert to list
|
273 |
if not isinstance(input_images, list):
|
274 |
input_images = [input_images]
|
275 |
+
|
276 |
+
images = [img[0] for img in input_images]
|
277 |
|
278 |
# Concatenate images horizontally
|
279 |
+
concatenated_image = concatenate_images(images, "horizontal")
|
280 |
|
281 |
if concatenated_image is None:
|
282 |
raise gr.Error("Failed to process the input images.")
|