Spaces:
Build error
Build error
Commit ·
0142aec
1
Parent(s): ed10d66
app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,9 @@ def show_output_image(matched_images, photos) :
|
|
| 22 |
#response = requests.get(photo_image_url)
|
| 23 |
#img = Image.open(BytesIO(response.content))
|
| 24 |
#return img
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 27 |
image.append(img)
|
| 28 |
return image
|
| 29 |
# Encode and normalize the search query using CLIP
|
|
|
|
| 22 |
#response = requests.get(photo_image_url)
|
| 23 |
#img = Image.open(BytesIO(response.content))
|
| 24 |
#return img
|
| 25 |
+
photo_jpg = photo_id + '.jpg'
|
| 26 |
+
image_path = './photos/'
|
| 27 |
+
img = Image.open('./photos/'+photo_jpg)
|
| 28 |
image.append(img)
|
| 29 |
return image
|
| 30 |
# Encode and normalize the search query using CLIP
|