Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def load_vectorstore(_embeddings):
|
|
65 |
cache_dir=cache_dir,
|
66 |
)
|
67 |
|
68 |
-
target_dir = "
|
69 |
|
70 |
# Walk through the directory tree recursively
|
71 |
for root, dirs, files in os.walk(cache_dir):
|
@@ -74,7 +74,7 @@ def load_vectorstore(_embeddings):
|
|
74 |
# Get the full path of the target directory
|
75 |
target_path = os.path.join(root, target_dir)
|
76 |
|
77 |
-
|
78 |
|
79 |
# load faiss
|
80 |
docsearch = FAISS.load_local(folder_path=target_path, embeddings=_embeddings)
|
|
|
65 |
cache_dir=cache_dir,
|
66 |
)
|
67 |
|
68 |
+
target_dir = "CFA_Level_1"
|
69 |
|
70 |
# Walk through the directory tree recursively
|
71 |
for root, dirs, files in os.walk(cache_dir):
|
|
|
74 |
# Get the full path of the target directory
|
75 |
target_path = os.path.join(root, target_dir)
|
76 |
|
77 |
+
print(target_path)
|
78 |
|
79 |
# load faiss
|
80 |
docsearch = FAISS.load_local(folder_path=target_path, embeddings=_embeddings)
|