Spaces:
Sleeping
Sleeping
File size: 1,618 Bytes
984c70c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | def generate_feedback(resume, skill_data):
missing = skill_data.get("missing", [])
feedback = []
resume_lower = resume.lower()
# ---------------- MISSING SKILLS ----------------
if missing:
feedback.append(
"Add missing skills from the job description like: "
+ ", ".join(missing[:5])
)
else:
feedback.append(
"Excellent skill alignment with the job description."
)
# ---------------- PROJECTS ----------------
if "project" not in resume_lower:
feedback.append(
"Add project section with technical projects."
)
# ---------------- EXPERIENCE ----------------
if "experience" not in resume_lower:
feedback.append(
"Add internship or practical experience section."
)
# ---------------- CERTIFICATIONS ----------------
if "certification" not in resume_lower:
feedback.append(
"Adding certifications can improve resume strength."
)
# ---------------- GITHUB ----------------
if "github" not in resume_lower:
feedback.append(
"Add GitHub profile link for project visibility."
)
# ---------------- LINKEDIN ----------------
if "linkedin" not in resume_lower:
feedback.append(
"Add LinkedIn profile for professional presence."
)
# ---------------- ACHIEVEMENTS ----------------
if "achievement" not in resume_lower:
feedback.append(
"Mention achievements, hackathons, or competitions."
)
return feedback |