Vidushee commited on
Commit
c3d479e
1 Parent(s): b1c8a82

Update Zocket_ImageBind.py

Browse files
Files changed (1) hide show
  1. Zocket_ImageBind.py +1 -1
Zocket_ImageBind.py CHANGED
@@ -49,7 +49,7 @@ if uploaded_image is not None:
49
 
50
  softmax_output = torch.softmax(embeddings[ModalityType.VISION] @ embeddings[ModalityType.TEXT].T, dim=-1)
51
 
52
- if softmax_output[0] > softmax_output[1]:
53
  st.write("Advertisement")
54
  else:
55
  st.write("Not an Advertisement")
 
49
 
50
  softmax_output = torch.softmax(embeddings[ModalityType.VISION] @ embeddings[ModalityType.TEXT].T, dim=-1)
51
 
52
+ if softmax_output[0][0] > softmax_output[0][1]:
53
  st.write("Advertisement")
54
  else:
55
  st.write("Not an Advertisement")