Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """Debug why valid resume is blocked""" | |
| from app import optimize_with_llm | |
| valid_resume = """ | |
| John Doe | john@email.com | 555-123-4567 | |
| EXPERIENCE | |
| Software Engineer | TechCorp | 2020 - Present | |
| • Developed Python applications | |
| • Built REST APIs | |
| • Managed databases | |
| SKILLS | |
| Python, JavaScript, SQL | |
| EDUCATION | |
| BS Computer Science | 2019 | |
| """ | |
| jd = "Software Engineer with Python and AWS experience" | |
| print("Testing valid resume...") | |
| print(f"Resume chars: {len(valid_resume.strip())}") | |
| print(f"Resume words: {len(valid_resume.strip().split())}") | |
| optimized, suggestions = optimize_with_llm(valid_resume, jd) | |
| print("\nSuggestions returned:") | |
| for s in suggestions: | |
| print(f" {s}") | |
| print(f"\nOptimized resume length: {len(optimized)}") | |
| print("\nFirst 500 chars of optimized:") | |
| print(optimized[:500]) | |