Moha782 commited on
Commit
1e123a6
·
verified ·
1 Parent(s): b04030d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from langchain.chains import RetrievalQA
5
  from langchain_community.llms import HuggingFaceHub
6
 
7
  # Load the vector store from the saved index files
8
- vector_store = FAISS.load_local("db.index", embeddings=None)
9
 
10
  # Initialize the HuggingFaceHub LLM
11
  llm = HuggingFaceHub(repo_id="HuggingFaceH4/zephyr-7b-beta", model_kwargs={"temperature": None, "top_p": None})
 
5
  from langchain_community.llms import HuggingFaceHub
6
 
7
  # Load the vector store from the saved index files
8
+ vector_store = FAISS.load_local("db.index", embeddings=None, allow_dangerous_deserialization=True)
9
 
10
  # Initialize the HuggingFaceHub LLM
11
  llm = HuggingFaceHub(repo_id="HuggingFaceH4/zephyr-7b-beta", model_kwargs={"temperature": None, "top_p": None})