RobotJelly commited on
Commit
0142aec
1 Parent(s): ed10d66
Files changed (1) hide show
  1. app.py +3 -2
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
- 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
 
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