osanseviero commited on
Commit
b31c0c9
·
1 Parent(s): 8fd8222

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -53,8 +53,7 @@ def predict(im):
53
  probabilities = torch.nn.functional.softmax(out[0], dim=0)
54
  values, indices = torch.topk(probabilities, 5)
55
 
56
- query = values[0]
57
- print(query, values)
58
 
59
  n_results=3
60
  text_embeddings = compute_text_embeddings([query]).detach().numpy()
 
53
  probabilities = torch.nn.functional.softmax(out[0], dim=0)
54
  values, indices = torch.topk(probabilities, 5)
55
 
56
+ query = LABELS[indices[0]]
 
57
 
58
  n_results=3
59
  text_embeddings = compute_text_embeddings([query]).detach().numpy()