Spaces:
Sleeping
Sleeping
File size: 827 Bytes
3038a81 |
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 |
#!/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])
|