Spaces:
Sleeping
Sleeping
Update utils/mistral.py
Browse files- utils/mistral.py +6 -3
utils/mistral.py
CHANGED
@@ -46,7 +46,7 @@ def Model_ProfessionalDetails_Output(resume, client):
|
|
46 |
}
|
47 |
user_prompt = {
|
48 |
"role": "user",
|
49 |
-
"content": f'''Act as a resume parser for the following text given in text: {resume}
|
50 |
Extract the text in the following output JSON string as:
|
51 |
{{
|
52 |
"professional": {{
|
@@ -61,6 +61,7 @@ def Model_ProfessionalDetails_Output(resume, client):
|
|
61 |
}}
|
62 |
}}
|
63 |
output:
|
|
|
64 |
'''
|
65 |
}
|
66 |
|
@@ -85,7 +86,7 @@ def Model_EducationalDetails_Output(resume, client):
|
|
85 |
}
|
86 |
user_prompt = {
|
87 |
"role": "user",
|
88 |
-
"content": f'''Act as a resume parser for the following text given in text: {resume}
|
89 |
Extract the text in the following output JSON string as:
|
90 |
{{
|
91 |
"educational": {{
|
@@ -96,6 +97,7 @@ def Model_EducationalDetails_Output(resume, client):
|
|
96 |
}}
|
97 |
}}
|
98 |
output:
|
|
|
99 |
'''
|
100 |
}
|
101 |
|
@@ -119,7 +121,7 @@ def Model_PersonalDetails_Output(resume, client):
|
|
119 |
}
|
120 |
user_prompt = {
|
121 |
"role": "user",
|
122 |
-
"content": f'''Act as a resume parser for the following text given in text: {resume}
|
123 |
Extract the text in the following output JSON string as:
|
124 |
{{
|
125 |
"personal": {{
|
@@ -131,6 +133,7 @@ def Model_PersonalDetails_Output(resume, client):
|
|
131 |
}}
|
132 |
}}
|
133 |
output:
|
|
|
134 |
'''
|
135 |
}
|
136 |
|
|
|
46 |
}
|
47 |
user_prompt = {
|
48 |
"role": "user",
|
49 |
+
"content": f'''<s>[INST] Act as a resume parser for the following text given in text: {resume}
|
50 |
Extract the text in the following output JSON string as:
|
51 |
{{
|
52 |
"professional": {{
|
|
|
61 |
}}
|
62 |
}}
|
63 |
output:
|
64 |
+
[/INST]</s>
|
65 |
'''
|
66 |
}
|
67 |
|
|
|
86 |
}
|
87 |
user_prompt = {
|
88 |
"role": "user",
|
89 |
+
"content": f'''<s>[INST] Act as a resume parser for the following text given in text: {resume}
|
90 |
Extract the text in the following output JSON string as:
|
91 |
{{
|
92 |
"educational": {{
|
|
|
97 |
}}
|
98 |
}}
|
99 |
output:
|
100 |
+
[/INST]</s>
|
101 |
'''
|
102 |
}
|
103 |
|
|
|
121 |
}
|
122 |
user_prompt = {
|
123 |
"role": "user",
|
124 |
+
"content": f'''<s>[INST] Act as a resume parser for the following text given in text: {resume}
|
125 |
Extract the text in the following output JSON string as:
|
126 |
{{
|
127 |
"personal": {{
|
|
|
133 |
}}
|
134 |
}}
|
135 |
output:
|
136 |
+
[/INST]</s>
|
137 |
'''
|
138 |
}
|
139 |
|