Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def find_best_matches(image, mode, text):
|
|
| 63 |
idx = best_photos[i][1]
|
| 64 |
photo_id = ids[idx]
|
| 65 |
|
| 66 |
-
photo_data = data[
|
| 67 |
|
| 68 |
response = requests.get(photo_data['photo_image_url']+ '?w=640')
|
| 69 |
img = pil.open(BytesIO(response.content))
|
|
|
|
| 63 |
idx = best_photos[i][1]
|
| 64 |
photo_id = ids[idx]
|
| 65 |
|
| 66 |
+
photo_data = data[data['photo_id'] == photo_id].iloc[0]
|
| 67 |
|
| 68 |
response = requests.get(photo_data['photo_image_url']+ '?w=640')
|
| 69 |
img = pil.open(BytesIO(response.content))
|