Spaces:
Build error
Build error
SHAMIL SHAHBAZ AWAN commited on
Update app.py
Browse files48 unmodified lines495051525253545548 unmodified lines
# Define file path and vector store folderfile_path = "Atomic habits ( PDFDrive ).pdf" # File directly in the root directory of the appVECTORSTORE_FOLDER = "vectorstore" # Folder in the root directoryVECTORSTORE_FOLDER = "vectorstore/index.faiss" # Folder in the root directory
# Ensure the vector store folder existsif not os.path.exists(VECTORSTORE_FOLDER):app.py+1-1