Spaces:
Build error
Build error
Commit ·
26787f1
1
Parent(s): a8854b2
app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,8 @@ def show_output_image(matched_images) :
|
|
| 15 |
image=[]
|
| 16 |
for photo_id in matched_images:
|
| 17 |
#photo_image_url = f"https://unsplash.com/photos/{photo_id}/download?w=280"
|
| 18 |
-
|
| 19 |
-
photo_image_url = f"https://unsplash.com/photos/{photo_id}?ixid=2yJhcHBfaWQiOjEyMDd9&fm=jpg"
|
| 20 |
response = requests.get(photo_image_url)
|
| 21 |
img = Image.open(BytesIO(response.content))
|
| 22 |
#return img
|
|
|
|
| 15 |
image=[]
|
| 16 |
for photo_id in matched_images:
|
| 17 |
#photo_image_url = f"https://unsplash.com/photos/{photo_id}/download?w=280"
|
| 18 |
+
photo_image_url = f"https://unsplash.com/photos/{photo_id}?w=640"
|
| 19 |
+
#photo_image_url = f"https://unsplash.com/photos/{photo_id}?ixid=2yJhcHBfaWQiOjEyMDd9&fm=jpg"
|
| 20 |
response = requests.get(photo_image_url)
|
| 21 |
img = Image.open(BytesIO(response.content))
|
| 22 |
#return img
|