ktllc commited on
Commit
251edb4
·
1 Parent(s): 7df14c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def find_similarity(base64_image, text_input):
25
  image_bytes = base64.b64decode(base64_image)
26
 
27
  # Convert the bytes to a PIL image
28
- image = Image.open(BytesIO(image_bytes)
29
 
30
  # Preprocess the image
31
  image = preprocess(image).unsqueeze(0).to(device)
 
25
  image_bytes = base64.b64decode(base64_image)
26
 
27
  # Convert the bytes to a PIL image
28
+ image = Image.open(BytesIO(image_bytes))
29
 
30
  # Preprocess the image
31
  image = preprocess(image).unsqueeze(0).to(device)