WebashalarForML commited on
Commit
7fdf1b1
·
verified ·
1 Parent(s): b0ccfc9

Update utils/mistral.py

Browse files
Files changed (1) hide show
  1. 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(['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']),
 
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']),