Penality commited on
Commit
4ce21a8
·
verified ·
1 Parent(s): afa0a99

Update app.py

Browse files

added a debug line to check whether document folder is created

Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -38,6 +38,10 @@ METADATA_FILE = "metadata.json" # Document metadata
38
  # Create the documents directory if it doesn’t exist
39
  os.makedirs(DOCUMENT_DIR, exist_ok=True)
40
 
 
 
 
 
41
  # Load FAISS index if it exists
42
  if os.path.exists(INDEX_FILE):
43
  print(" FAISS index file exists")
 
38
  # Create the documents directory if it doesn’t exist
39
  os.makedirs(DOCUMENT_DIR, exist_ok=True)
40
 
41
+
42
+ print(os.getcwd()) # This will print the current working directory
43
+ print(os.listdir(".")) # This will show files in the current director
44
+
45
  # Load FAISS index if it exists
46
  if os.path.exists(INDEX_FILE):
47
  print(" FAISS index file exists")