Spaces:
Sleeping
Sleeping
Update models/langOpen.py
Browse files- models/langOpen.py +1 -1
models/langOpen.py
CHANGED
|
@@ -35,7 +35,7 @@ class LangOpen:
|
|
| 35 |
if os.path.exists(path=path):
|
| 36 |
return FAISS.load_local(folder_path=path, embeddings=embeddings)
|
| 37 |
else:
|
| 38 |
-
faiss = FAISS.from_documents(pages,
|
| 39 |
faiss.save_local(path)
|
| 40 |
return faiss
|
| 41 |
|
|
|
|
| 35 |
if os.path.exists(path=path):
|
| 36 |
return FAISS.load_local(folder_path=path, embeddings=embeddings)
|
| 37 |
else:
|
| 38 |
+
faiss = FAISS.from_documents(pages, embeddings)
|
| 39 |
faiss.save_local(path)
|
| 40 |
return faiss
|
| 41 |
|