quoc-khanh commited on
Commit
1c0d878
·
verified ·
1 Parent(s): 99ee440

Update helpers.py

Browse files
Files changed (1) hide show
  1. 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
- return [str(file) for file in Path(folder_path).rglob("*.docx")]
 
 
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: '