svjack commited on
Commit
e6e96bd
·
1 Parent(s): e12ff12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def swap_gallery(im, images):
25
  #### name data is_file
26
  #print(images[0].keys())
27
  if im is None:
28
- return images
29
 
30
  im_hash = imagehash.average_hash(Image.fromarray(im))
31
  t2_list = sorted(images, key = lambda imm:
 
25
  #### name data is_file
26
  #print(images[0].keys())
27
  if im is None:
28
+ return list(map(lambda x: x["name"], images))
29
 
30
  im_hash = imagehash.average_hash(Image.fromarray(im))
31
  t2_list = sorted(images, key = lambda imm: