Spaces:
Sleeping
Sleeping
Update helpers.py
Browse files- helpers.py +3 -1
helpers.py
CHANGED
@@ -298,7 +298,9 @@ def get_json_splits_only(file_path):
|
|
298 |
return table_splits
|
299 |
|
300 |
def list_docx_files(folder_path):
|
301 |
-
|
|
|
|
|
302 |
|
303 |
def prompt_order(queries):
|
304 |
text = 'Câu hỏi: '
|
|
|
298 |
return table_splits
|
299 |
|
300 |
def list_docx_files(folder_path):
|
301 |
+
"""List all DOCX and DOC files in the given folder (including subfolders)."""
|
302 |
+
return [str(file) for file in Path(folder_path).rglob("*.docx")] + \
|
303 |
+
[str(file) for file in Path(folder_path).rglob("*.doc")]
|
304 |
|
305 |
def prompt_order(queries):
|
306 |
text = 'Câu hỏi: '
|