Spaces:
Runtime error
Runtime error
darshan8950
commited on
Commit
•
f2d4b53
1
Parent(s):
4cb113c
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def main():
|
|
30 |
|
31 |
llm = HuggingFacePipeline(pipeline=pipeline, model_kwargs={'temperature': 0})
|
32 |
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2')
|
33 |
-
vectorstore = FAISS.from_documents(data, embeddings
|
34 |
vectorstore.save_local(DB_FAISS_PATH)
|
35 |
|
36 |
# Load the saved vectorstore
|
|
|
30 |
|
31 |
llm = HuggingFacePipeline(pipeline=pipeline, model_kwargs={'temperature': 0})
|
32 |
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2')
|
33 |
+
vectorstore = FAISS.from_documents(data, embeddings,allow_dangerous_deserialization=True)
|
34 |
vectorstore.save_local(DB_FAISS_PATH)
|
35 |
|
36 |
# Load the saved vectorstore
|