Spaces:
Build error
Build error
Commit ·
ed10d66
1
Parent(s): e3ae961
app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,8 @@ 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 |
-
image_path = './photos/' + photo_id + '.jpg'
|
| 26 |
-
img = Image(image_path)
|
| 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 |
+
image_path = './photos'+ '/' + photo_id + '.jpg'
|
| 26 |
+
img = Image.open(image_path)
|
| 27 |
image.append(img)
|
| 28 |
return image
|
| 29 |
# Encode and normalize the search query using CLIP
|