Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,25 @@ def format_skills_response(skills: dict) -> str:
|
|
42 |
|
43 |
return '\n'.join(response)
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
def analyze_job_description(text: str, knowledge_base: dict) -> str:
|
46 |
"""Analyze job description and provide detailed alignment"""
|
47 |
# Extract key requirements
|
|
|
42 |
|
43 |
return '\n'.join(response)
|
44 |
|
45 |
+
for category, subcategories in categories.items():
|
46 |
+
response.append(f"• {category}")
|
47 |
+
for subcat in subcategories:
|
48 |
+
if subcat in skills['programming']:
|
49 |
+
items = skills['programming'][subcat]
|
50 |
+
response.append(f" - {subcat.title()}: {', '.join(items)}")
|
51 |
+
response.append("") # Add spacing between categories
|
52 |
+
|
53 |
+
return '\n'.join(response)
|
54 |
+
for category, subcategories in categories.items():
|
55 |
+
response.append(f"• {category}")
|
56 |
+
for subcat in subcategories:
|
57 |
+
if subcat in skills['data']:
|
58 |
+
items = skills['data'][subcat]
|
59 |
+
response.append(f" - {subcat.title()}: {', '.join(items)}")
|
60 |
+
response.append("") # Add spacing between categories
|
61 |
+
|
62 |
+
return '\n'.join(response)
|
63 |
+
|
64 |
def analyze_job_description(text: str, knowledge_base: dict) -> str:
|
65 |
"""Analyze job description and provide detailed alignment"""
|
66 |
# Extract key requirements
|