Spaces:
Runtime error
Runtime error
Commit
·
fa7d0e2
1
Parent(s):
777a816
debug
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def image_text_zeroshot(image, text_list):
|
|
| 23 |
embeddings = model(inputs)
|
| 24 |
|
| 25 |
scores = torch.softmax(
|
| 26 |
-
embeddings[ModalityType.VISION] @ embeddings[ModalityType.
|
| 27 |
dim=-1
|
| 28 |
).squeeze(0).tolist()
|
| 29 |
|
|
|
|
| 23 |
embeddings = model(inputs)
|
| 24 |
|
| 25 |
scores = torch.softmax(
|
| 26 |
+
embeddings[ModalityType.VISION] @ embeddings[ModalityType.TEXT].T,
|
| 27 |
dim=-1
|
| 28 |
).squeeze(0).tolist()
|
| 29 |
|