Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|