anudayo commited on
Commit
621057c
·
verified ·
1 Parent(s): dc8f5e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -163,6 +163,10 @@ def load_all_vectorstores():
163
  print(f"✅ {folder_name} 로드 완료 (방법 1)")
164
  except Exception as e1:
165
  print(f"⚠️ 방법 1 실패: {e1}")
 
 
 
 
166
 
167
  # 방법 2: 절대 경로로 시도
168
  try:
@@ -175,6 +179,10 @@ def load_all_vectorstores():
175
  print(f"✅ {folder_name} 로드 완료 (방법 2)")
176
  except Exception as e2:
177
  print(f"⚠️ 방법 2 실패: {e2}")
 
 
 
 
178
 
179
  # 방법 3: 직접 파일 지정
180
  try:
 
163
  print(f"✅ {folder_name} 로드 완료 (방법 1)")
164
  except Exception as e1:
165
  print(f"⚠️ 방법 1 실패: {e1}")
166
+
167
+ print("현재 작업 디렉토리:", os.getcwd())
168
+ print("폴더 경로 존재 여부:", os.path.exists(folder_path)
169
+
170
 
171
  # 방법 2: 절대 경로로 시도
172
  try:
 
179
  print(f"✅ {folder_name} 로드 완료 (방법 2)")
180
  except Exception as e2:
181
  print(f"⚠️ 방법 2 실패: {e2}")
182
+
183
+ print("index.faiss 존재 여부:", os.path.exists(os.path.join(folder_path, "index.faiss")))
184
+ print("index.pkl 존재 여부:", os.path.exists(os.path.join(folder_path, "index.pkl")))
185
+
186
 
187
  # 방법 3: 직접 파일 지정
188
  try: