linoyts HF Staff commited on
Commit
fafc779
·
verified ·
1 Parent(s): 5755f6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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(input_images, "horizontal")
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.")