Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ from langchain_community.vectorstores.faiss import FAISS
|
|
20 |
|
21 |
|
22 |
# db = faiss.read_index('index.pkl')
|
23 |
-
db = pickle.load('index.pkl')
|
24 |
-
|
25 |
-
|
26 |
db.save_local("faiss_index")
|
27 |
db=FAISS.load_local("faiss_index", embeddings,allow_dangerous_deserialization=True)
|
28 |
#-----------------------------------------------------------------------------
|
|
|
20 |
|
21 |
|
22 |
# db = faiss.read_index('index.pkl')
|
23 |
+
#db = pickle.load('index.pkl')
|
24 |
+
with open('index.pickle', 'rb') as pkl:
|
25 |
+
doc_embedding = pickle.load(pkl)
|
26 |
db.save_local("faiss_index")
|
27 |
db=FAISS.load_local("faiss_index", embeddings,allow_dangerous_deserialization=True)
|
28 |
#-----------------------------------------------------------------------------
|