RobotJelly commited on
Commit
1d86891
·
1 Parent(s): 1e68ee0
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def show_output_image(matched_images) :
36
  #photo_image_url = f"https://unsplash.com/photos/{photo_id}?ixid=2yJhcHBfaWQiOjEyMDd9&fm=jpg"
37
  #photo_found = photos[photos["photo_id"] == photo_id].iloc[0]
38
  #response = requests.get(photo_found["photo_image_url"] + "?w=640")
39
- response = requests.get(photo_image_url)
40
  img = Image.open(BytesIO(response.content))
41
  #return img
42
  #photo_jpg = photo_id + '.jpg'
 
36
  #photo_image_url = f"https://unsplash.com/photos/{photo_id}?ixid=2yJhcHBfaWQiOjEyMDd9&fm=jpg"
37
  #photo_found = photos[photos["photo_id"] == photo_id].iloc[0]
38
  #response = requests.get(photo_found["photo_image_url"] + "?w=640")
39
+ response = requests.get(photo_image_url, stream=True).raw
40
  img = Image.open(BytesIO(response.content))
41
  #return img
42
  #photo_jpg = photo_id + '.jpg'