Spaces:
Sleeping
Sleeping
Update utils/mistral.py
Browse files- utils/mistral.py +7 -7
utils/mistral.py
CHANGED
@@ -323,18 +323,18 @@ def process_resume_data(file_path):
|
|
323 |
# Combine both personal and professional details into a structured output
|
324 |
result = {
|
325 |
"personal": {
|
326 |
-
"name": per_data.get('personal', {}).get(
|
327 |
-
"contact": per_data.get('personal', {}).get(
|
328 |
-
"email": per_data.get('personal', {}).get(
|
329 |
-
"location": per_data.get('personal', {}).get(
|
330 |
"linkedin": linkedin_links,
|
331 |
"github": github_links,
|
332 |
"other_links": hyperlinks # Store remaining links if needed
|
333 |
},
|
334 |
"professional": {
|
335 |
-
"technical_skills": pro_data.get('professional', {}).get(
|
336 |
-
"non_technical_skills": pro_data.get('professional', {}).get(
|
337 |
-
"tools": pro_data.get('professional', {}).get(
|
338 |
"experience": [
|
339 |
{
|
340 |
"company": pro_data.get('professional', {}).get('companies_worked_at', ['Not found']),
|
|
|
323 |
# Combine both personal and professional details into a structured output
|
324 |
result = {
|
325 |
"personal": {
|
326 |
+
"name": per_data.get('personal', {}).get('name', ['Not found']),
|
327 |
+
"contact": per_data.get('personal', {}).get('contact_number', ['Not found']),
|
328 |
+
"email": per_data.get('personal', {}).get('email', ['Not found']),
|
329 |
+
"location": per_data.get('personal', {}).get('Address', ['Not found']),
|
330 |
"linkedin": linkedin_links,
|
331 |
"github": github_links,
|
332 |
"other_links": hyperlinks # Store remaining links if needed
|
333 |
},
|
334 |
"professional": {
|
335 |
+
"technical_skills": pro_data.get('professional', {}).get('technical_skills', ['Not found']),
|
336 |
+
"non_technical_skills": pro_data.get('professional', {}).get('non_technical_skills', ['Not found']),
|
337 |
+
"tools": pro_data.get('professional', {}).get('tools', ['Not found']),
|
338 |
"experience": [
|
339 |
{
|
340 |
"company": pro_data.get('professional', {}).get('companies_worked_at', ['Not found']),
|