Spaces:
Sleeping
Sleeping
Update utils/mistral.py
Browse files- utils/mistral.py +6 -6
utils/mistral.py
CHANGED
@@ -115,7 +115,7 @@ def Model_EducationalDetails_Output(resume, client):
|
|
115 |
def Model_PersonalDetails_Output(resume, client):
|
116 |
system_role = {
|
117 |
"role": "system",
|
118 |
-
"content": "You are a skilled resume parser. Your task is to extract
|
119 |
}
|
120 |
user_prompt = {
|
121 |
"role": "user",
|
@@ -123,11 +123,11 @@ def Model_PersonalDetails_Output(resume, client):
|
|
123 |
Extract the text in the following output JSON string as:
|
124 |
{{
|
125 |
"personal": {{
|
126 |
-
"name": "Extract the full name based on the resume. If not found, return
|
127 |
-
"contact_number": "Extract the contact number from the resume. If not found, return
|
128 |
-
"email": "Extract the email address from the resume. If not found, return
|
129 |
-
"address": "Extract the address or address from the resume. If not found, return
|
130 |
-
"link": "Extract any relevant links (e.g., portfolio, LinkedIn) from the resume. If not found, return
|
131 |
}}
|
132 |
}}
|
133 |
output:
|
|
|
115 |
def Model_PersonalDetails_Output(resume, client):
|
116 |
system_role = {
|
117 |
"role": "system",
|
118 |
+
"content": "You are a skilled resume parser. Your task is to extract personal details from resumes in a structured JSON format defined by the User. Ensure accuracy and completeness while maintaining the format provided and if field are missing just return []."
|
119 |
}
|
120 |
user_prompt = {
|
121 |
"role": "user",
|
|
|
123 |
Extract the text in the following output JSON string as:
|
124 |
{{
|
125 |
"personal": {{
|
126 |
+
"name": "Extract the full name based on the resume. If not found, return [].",
|
127 |
+
"contact_number": "Extract the contact number from the resume. If not found, return [].",
|
128 |
+
"email": "Extract the email address from the resume. If not found, return [].",
|
129 |
+
"address": "Extract the address or address from the resume. If not found, return [].",
|
130 |
+
"link": "Extract any relevant links (e.g., portfolio, LinkedIn) from the resume. If not found, return []."
|
131 |
}}
|
132 |
}}
|
133 |
output:
|