Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def predict(image):
|
|
87 |
with torch.no_grad():
|
88 |
img_emb = model2.encode_image(inputs)
|
89 |
img_emb = normalized(img_emb.cpu().numpy())
|
90 |
-
img_emb_tensor = torch.from_numpy(img_emb).to(device)
|
91 |
prediction = model(img_emb_tensor).item()
|
92 |
|
93 |
result = {
|
|
|
87 |
with torch.no_grad():
|
88 |
img_emb = model2.encode_image(inputs)
|
89 |
img_emb = normalized(img_emb.cpu().numpy())
|
90 |
+
img_emb_tensor = torch.from_numpy(img_emb).to(device).float()
|
91 |
prediction = model(img_emb_tensor).item()
|
92 |
|
93 |
result = {
|