Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ INDEX_FILE = "faiss_index.py" # stores embeddings
|
|
| 36 |
METADATA_FILE = "metadata.json" # stores Document metadata
|
| 37 |
|
| 38 |
# create the directory
|
| 39 |
-
os.makedirs(DOCUMENT_DIR,
|
| 40 |
|
| 41 |
# load the faiss indexes file
|
| 42 |
if os.path.exists(INDEX_FILE): # check if index file exists
|
|
|
|
| 36 |
METADATA_FILE = "metadata.json" # stores Document metadata
|
| 37 |
|
| 38 |
# create the directory
|
| 39 |
+
os.makedirs(DOCUMENT_DIR, exist_ok=True)
|
| 40 |
|
| 41 |
# load the faiss indexes file
|
| 42 |
if os.path.exists(INDEX_FILE): # check if index file exists
|