Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ index_file = "faiss-d2-nn_index.pkl"
|
|
206 |
metadata_file = "faiss-d2-image_metadata.pkl"
|
207 |
|
208 |
if not os.path.exists(index_file) or not os.path.exists(metadata_file):
|
209 |
-
root_dir = "
|
210 |
index, image_paths, categories = load_and_index_images(root_dir)
|
211 |
save_index_and_metadata(index, image_paths, categories, index_file, metadata_file)
|
212 |
else:
|
|
|
206 |
metadata_file = "faiss-d2-image_metadata.pkl"
|
207 |
|
208 |
if not os.path.exists(index_file) or not os.path.exists(metadata_file):
|
209 |
+
root_dir = "Dataset2"
|
210 |
index, image_paths, categories = load_and_index_images(root_dir)
|
211 |
save_index_and_metadata(index, image_paths, categories, index_file, metadata_file)
|
212 |
else:
|