update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
import
|
2 |
-
import gradio as gr
|
3 |
from sklearn.metrics.pairwise import cosine_similarity
|
|
|
|
|
4 |
|
5 |
-
dataset = load_dataset("justina/celeb-identities")
|
6 |
model = SentenceTransformer("sentence-transformers/clip-ViT-B-16")
|
7 |
|
8 |
def predict(im1, im2):
|
|
|
1 |
+
from sentence_transformers import SentenceTransformer
|
|
|
2 |
from sklearn.metrics.pairwise import cosine_similarity
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
|
|
|
6 |
model = SentenceTransformer("sentence-transformers/clip-ViT-B-16")
|
7 |
|
8 |
def predict(im1, im2):
|