Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ from sklearn.metrics.pairwise import cosine_similarity
|
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
|
6 |
model = SentenceTransformer(f'sentence-transformers/clip-ViT-L-14')
|
7 |
-
embeddings = model.encode(dataset['train']['image'])
|
8 |
|
9 |
def predict(im1, im2):
|
10 |
embeddings = model.encode([im1, im2])
|
|
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
|
6 |
model = SentenceTransformer(f'sentence-transformers/clip-ViT-L-14')
|
|
|
7 |
|
8 |
def predict(im1, im2):
|
9 |
embeddings = model.encode([im1, im2])
|