Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,37 +27,19 @@ def format_skills_response(skills: dict) -> str:
|
|
27 |
response = ["My Technical Expertise:\n"]
|
28 |
|
29 |
categories = {
|
30 |
-
'Machine Learning & AI': ['core', 'frameworks', 'focus_areas'],
|
31 |
-
'Programming': ['primary', 'libraries', 'tools'],
|
32 |
-
'Data & Analytics': ['databases', 'visualization', 'processing']
|
33 |
}
|
34 |
|
35 |
-
for category, subcategories in categories.items():
|
36 |
response.append(f"• {category}")
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
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 |
|
|
|
27 |
response = ["My Technical Expertise:\n"]
|
28 |
|
29 |
categories = {
|
30 |
+
'Machine Learning & AI': ('machine_learning', ['core', 'frameworks', 'focus_areas']),
|
31 |
+
'Programming': ('programming', ['primary', 'libraries', 'tools']),
|
32 |
+
'Data & Analytics': ('data', ['databases', 'visualization', 'processing'])
|
33 |
}
|
34 |
|
35 |
+
for category, (dict_key, subcategories) in categories.items():
|
36 |
response.append(f"• {category}")
|
37 |
+
if dict_key in skills:
|
38 |
+
for subcat in subcategories:
|
39 |
+
if subcat in skills[dict_key]:
|
40 |
+
items = skills[dict_key][subcat]
|
41 |
+
response.append(f" - {subcat.title()}: {', '.join(items)}")
|
42 |
+
response.append("")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
return '\n'.join(response)
|
45 |
|