Spaces:
Runtime error
Runtime error
Update processing.py
Browse files- processing.py +2 -2
processing.py
CHANGED
@@ -30,8 +30,8 @@ for key, file_path in knowledge_files.items():
|
|
30 |
text_faiss_index = FAISS.from_texts(documents, embedding_model)
|
31 |
|
32 |
# Load pre-existing FAISS indexes
|
33 |
-
attachments_faiss_index = FAISS.load_local("knowledge/faiss_index_Attachments_db", embedding_model)
|
34 |
-
personalities_faiss_index = FAISS.load_local("knowledge/faiss_index_Personalities_db", embedding_model)
|
35 |
|
36 |
# Initialize LLM
|
37 |
llm = load_model(openai_api_key)
|
|
|
30 |
text_faiss_index = FAISS.from_texts(documents, embedding_model)
|
31 |
|
32 |
# Load pre-existing FAISS indexes
|
33 |
+
attachments_faiss_index = FAISS.load_local("knowledge/faiss_index_Attachments_db", embedding_model, allow_dangerous_deserialization=True)
|
34 |
+
personalities_faiss_index = FAISS.load_local("knowledge/faiss_index_Personalities_db", embedding_model, allow_dangerous_deserialization=True)
|
35 |
|
36 |
# Initialize LLM
|
37 |
llm = load_model(openai_api_key)
|