darshan8950 commited on
Commit
4cb113c
1 Parent(s): 5930792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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