File size: 643 Bytes
a5203b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from datetime import datetime

def generate_roadmap(domain, skills, llm_model):
    prompt = f"""
    You are a career advisor. Generate a 3-step 6-month career roadmap with bullet points for someone with skills {skills} in the field of {domain}.
    Suggest skills to improve, certifications, and countries to target.
    """
    result = llm_model(prompt, max_new_tokens=300)[0]['generated_text']

    return f"""
    <div style="border: 2px solid #ccc; padding: 1em; border-radius: 10px;">
        <h4>📅 Roadmap from {datetime.today().strftime('%B %Y')}:</h4>
        <pre style="white-space: pre-wrap;">{result}</pre>
    </div>
    """