Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from io import BytesIO
|
|
8 |
|
9 |
# Load the CLIP model
|
10 |
model, preprocess = clip.load("ViT-B/32")
|
11 |
-
device = "cuda" if torch.cuda.
|
12 |
model.to(device).eval()
|
13 |
|
14 |
def find_similarity(image_base64, text_input):
|
|
|
8 |
|
9 |
# Load the CLIP model
|
10 |
model, preprocess = clip.load("ViT-B/32")
|
11 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
model.to(device).eval()
|
13 |
|
14 |
def find_similarity(image_base64, text_input):
|