Spaces:
Sleeping
Sleeping
| # %%writefile utils/resume_loader.py | |
| import os | |
| def load_resume_files(resume_dir="data/resumes"): | |
| return [ | |
| os.path.join(resume_dir, f) | |
| for f in os.listdir(resume_dir) | |
| if os.path.isfile(os.path.join(resume_dir, f)) | |
| and f.lower().endswith((".pdf", ".docx", ".txt")) | |
| and not f.startswith(".") | |
| ] |