Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ USE_MMR = True
|
|
| 37 |
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s")
|
| 38 |
|
| 39 |
def load_documents_from_folder(folder_path: str) -> list[Document]:
|
| 40 |
-
|
| 41 |
documents: list[Document] = []
|
| 42 |
if not os.path.exists(folder_path):
|
| 43 |
os.makedirs(folder_path, exist_ok=True)
|
|
|
|
| 37 |
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s")
|
| 38 |
|
| 39 |
def load_documents_from_folder(folder_path: str) -> list[Document]:
|
| 40 |
+
logging.info(f"--- Bắt đầu quét thư mục: {folder_path} ---")
|
| 41 |
documents: list[Document] = []
|
| 42 |
if not os.path.exists(folder_path):
|
| 43 |
os.makedirs(folder_path, exist_ok=True)
|