Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|