nickmuchi commited on
Commit
b9d30a5
·
1 Parent(s): 6fb2144

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ def load_vectorstore(_embeddings):
65
  cache_dir=cache_dir,
66
  )
67
 
68
- target_dir = "book/CFA/*"
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)