Spaces:
Sleeping
Sleeping
def get_career_recommendations(skills: str, interests: str): | |
# Mock data: mapping skills and interests to careers | |
career_options = { | |
"programming": "Software Engineer", | |
"design": "Graphic Designer", | |
"management": "Project Manager", | |
"communication": "Marketing Specialist", | |
} | |
# Simple rule-based matching | |
skills = skills.lower().split(",") | |
interests = interests.lower().split(",") | |
recommendations = [] | |
for skill in skills: | |
if skill.strip() in career_options: | |
recommendations.append(career_options[skill.strip()]) | |
for interest in interests: | |
if interest.strip() in career_options and career_options[interest.strip()] not in recommendations: | |
recommendations.append(career_options[interest.strip()]) | |
# Return a list of career recommendations | |
return recommendations if recommendations else ["No matching career found."] | |