Spaces:
Sleeping
Sleeping
Update Zocket_ImageBind.py
Browse files- 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")
|