JustinLin610 commited on
Commit
fa7d0e2
1 Parent(s): 777a816
Files changed (1) hide show
  1. app.py +1 -1
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.AUDIO].T,
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