Spaces:
Sleeping
Sleeping
SHAMIL SHAHBAZ AWAN
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ embedder = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|
|
| 49 |
|
| 50 |
# Define file path and vector store folder
|
| 51 |
file_path = "Atomic habits ( PDFDrive ).pdf" # File directly in the root directory of the app
|
| 52 |
-
VECTORSTORE_FOLDER = "vectorstore" # Folder in the root directory
|
| 53 |
|
| 54 |
# Ensure the vector store folder exists
|
| 55 |
if not os.path.exists(VECTORSTORE_FOLDER):
|
|
|
|
| 49 |
|
| 50 |
# Define file path and vector store folder
|
| 51 |
file_path = "Atomic habits ( PDFDrive ).pdf" # File directly in the root directory of the app
|
| 52 |
+
VECTORSTORE_FOLDER = "vectorstore/index.faiss" # Folder in the root directory
|
| 53 |
|
| 54 |
# Ensure the vector store folder exists
|
| 55 |
if not os.path.exists(VECTORSTORE_FOLDER):
|