Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ hf_embeddings = HuggingFaceEndpointEmbeddings(
|
|
56 |
## Prevent re-indexing if vectorstores already exists
|
57 |
if os.path.exists("/home/user/app/data/vectorstore"):
|
58 |
vectorstore = FAISS.load_local(
|
59 |
-
"
|
60 |
hf_embeddings,
|
61 |
allow_dangerous_deserialization=True # this is necessary to load the vectorstore from disk as it's stored as a `.pkl` file.
|
62 |
)
|
|
|
56 |
## Prevent re-indexing if vectorstores already exists
|
57 |
if os.path.exists("/home/user/app/data/vectorstore"):
|
58 |
vectorstore = FAISS.load_local(
|
59 |
+
"/home/user/app/data/vectorstore",
|
60 |
hf_embeddings,
|
61 |
allow_dangerous_deserialization=True # this is necessary to load the vectorstore from disk as it's stored as a `.pkl` file.
|
62 |
)
|