Spaces:
Sleeping
Sleeping
Update utils/mistral.py
Browse files- utils/mistral.py +10 -10
utils/mistral.py
CHANGED
|
@@ -130,11 +130,11 @@ def Model_PersonalDetails_Output(resume, client):
|
|
| 130 |
Extract the text in the following output JSON string as:
|
| 131 |
{{
|
| 132 |
"personal": {{
|
| 133 |
-
"name": "Extract the full name based on the resume. If not found, return [].",
|
| 134 |
-
"contact_number": "Extract the contact number from the resume. If not found, return [].",
|
| 135 |
-
"email": "Extract the email address from the resume. If not found, return [].",
|
| 136 |
-
"address": "Extract the address or address from the resume. If not found, return [].",
|
| 137 |
-
"link": "Extract any relevant links (e.g., portfolio, LinkedIn) from the resume. If not found, return []."
|
| 138 |
}}
|
| 139 |
}}
|
| 140 |
output:
|
|
@@ -426,11 +426,11 @@ def process_resume_data(file_path):
|
|
| 426 |
result['personal']['other_links'] += links
|
| 427 |
|
| 428 |
#Added the validator for details, Validate contact and email
|
| 429 |
-
valid_contact, invalid_contact, valid_email, invalid_email = validate_contact_email(result['personal'])
|
| 430 |
-
result['personal']['valid_contact'] = valid_contact
|
| 431 |
-
result['personal']['invalid_contact'] = invalid_contact
|
| 432 |
-
result['personal']['valid_email'] = valid_email
|
| 433 |
-
result['personal']['invalid_email'] = invalid_email
|
| 434 |
|
| 435 |
#Appending the Educational Details if any available as a text
|
| 436 |
|
|
|
|
| 130 |
Extract the text in the following output JSON string as:
|
| 131 |
{{
|
| 132 |
"personal": {{
|
| 133 |
+
"name": ["Extract the full name based on the resume. If not found, return []."],
|
| 134 |
+
"contact_number": ["Extract the contact number from the resume. If not found, return []."],
|
| 135 |
+
"email": ["Extract the email address from the resume. If not found, return []."],
|
| 136 |
+
"address": ["Extract the address or address from the resume. If not found, return []."],
|
| 137 |
+
"link": ["Extract any relevant links (e.g., portfolio, LinkedIn) from the resume. If not found, return [].]"
|
| 138 |
}}
|
| 139 |
}}
|
| 140 |
output:
|
|
|
|
| 426 |
result['personal']['other_links'] += links
|
| 427 |
|
| 428 |
#Added the validator for details, Validate contact and email
|
| 429 |
+
#valid_contact, invalid_contact, valid_email, invalid_email = validate_contact_email(result['personal'])
|
| 430 |
+
#result['personal']['valid_contact'] = valid_contact
|
| 431 |
+
#result['personal']['invalid_contact'] = invalid_contact
|
| 432 |
+
#result['personal']['valid_email'] = valid_email
|
| 433 |
+
#result['personal']['invalid_email'] = invalid_email
|
| 434 |
|
| 435 |
#Appending the Educational Details if any available as a text
|
| 436 |
|