Spaces:
Runtime error
Runtime error
Commit
·
5c6849b
1
Parent(s):
489b7f2
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ model = SentenceTransformer(model_name)
|
|
| 20 |
# wget.download(index_url, index_name)
|
| 21 |
# index = faiss.read_index(index_name)
|
| 22 |
|
| 23 |
-
vectors = np.load("
|
| 24 |
vector_dimension = vectors.shape[1]
|
| 25 |
index = faiss.IndexFlatL2(vector_dimension)
|
| 26 |
faiss.normalize_L2(vectors)
|
|
|
|
| 20 |
# wget.download(index_url, index_name)
|
| 21 |
# index = faiss.read_index(index_name)
|
| 22 |
|
| 23 |
+
vectors = np.load("shivangibithel/Text2ImageRetrieval/sbert_text_features.npy")
|
| 24 |
vector_dimension = vectors.shape[1]
|
| 25 |
index = faiss.IndexFlatL2(vector_dimension)
|
| 26 |
faiss.normalize_L2(vectors)
|