Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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})
|