Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import matplotlib.pyplot as plt
|
2 |
import gradio as gr
|
3 |
from sklearn.metrics.pairwise import cosine_similarity
|
|
|
4 |
|
5 |
model = SentenceTransformer(f'sentence-transformers/clip-ViT-L-14')
|
6 |
embeddings = model.encode(dataset['train']['image'])
|
|
|
1 |
import matplotlib.pyplot as plt
|
2 |
import gradio as gr
|
3 |
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'])
|