Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,8 +145,8 @@ def unpack_zip_file(filename:str,db:LangChainFAISS,progress):
|
|
| 145 |
|
| 146 |
if 'index.faiss' in [item.lower() for item in contents]:
|
| 147 |
db2 = LangChainFAISS.load_local(tmp_directory, embeddings, allow_dangerous_deserialization=True)
|
| 148 |
-
|
| 149 |
-
return
|
| 150 |
|
| 151 |
for file in contents:
|
| 152 |
if file.lower().endswith('.docx'):
|
|
|
|
| 145 |
|
| 146 |
if 'index.faiss' in [item.lower() for item in contents]:
|
| 147 |
db2 = LangChainFAISS.load_local(tmp_directory, embeddings, allow_dangerous_deserialization=True)
|
| 148 |
+
db2.merge_from(db)
|
| 149 |
+
return db2
|
| 150 |
|
| 151 |
for file in contents:
|
| 152 |
if file.lower().endswith('.docx'):
|