Ai-Resume-Ranking / utils /resume_loader.py
yhng2525's picture
Upload 15 files
1595f22 verified
raw
history blame contribute delete
349 Bytes
# %%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(".")
]