Spaces:
Build error
Build error
metadata v12
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def find_similar_faces(uploaded_image: Image.Image):
|
|
115 |
summary = ""
|
116 |
for sim, name, img in top_matches:
|
117 |
caption = f"{name} - Similitud: {sim:.2f}"
|
118 |
-
gallery_items.append((img, caption))
|
119 |
summary += caption + "\n"
|
120 |
|
121 |
return gallery_items, summary
|
|
|
115 |
summary = ""
|
116 |
for sim, name, img in top_matches:
|
117 |
caption = f"{name} - Similitud: {sim:.2f}"
|
118 |
+
gallery_items.append((np.array(img), caption))
|
119 |
summary += caption + "\n"
|
120 |
|
121 |
return gallery_items, summary
|