haor commited on
Commit
edd777f
·
verified ·
1 Parent(s): a2004d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = {