Spaces:
Runtime error
Runtime error
Commit
·
b31c0c9
1
Parent(s):
8fd8222
Update app.py
Browse files
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 =
|
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()
|