Spaces:
Paused
Paused
| from job_apply_ai.analyzer.ats_evaluator import ATSEvaluator | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| def run_test(): | |
| print("Initializing Evaluator...") | |
| evaluator = ATSEvaluator() | |
| dummy_resume = "I am a software engineer with 5 years of experience in Python, Flask, and React." | |
| dummy_jd = "Looking for a backend developer. Must know Python, Flask, Django, and SQL." | |
| print("Running evaluation (this will trigger the heavy model load)...") | |
| result = evaluator.evaluate_fit(dummy_resume, dummy_jd) | |
| print("\n--- RESULTS ---") | |
| print(f"Match Score: {result['match_score']}%") | |
| print(f"Matched Skills: {result['matched_skills']}") | |
| print(f"Missing Skills: {result['missing_skills']}") | |
| if __name__ == "__main__": | |
| run_test() |