Saiteja commited on
Commit
7007279
·
1 Parent(s): ed1ed6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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'])