Spaces:
Running
Running
Update app.py
Browse filesadded a debug line to check whether document folder is created
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")
|