srijaydeshpande commited on
Commit
fa66265
·
verified ·
1 Parent(s): 745617e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +48 -36
app.py CHANGED
@@ -90,46 +90,58 @@ def convert_to_json(llm, cv_text, maxtokens, temperature, top_probability):
90
  You are an expert at structuring resumes in JSON format. Given a modified resume text, extract the relevant details and convert them into the following structured JSON format:
91
 
92
  {
93
- "profileDetail": {
94
- "name": "[Candidate's Name]",
95
- "email": "[Candidate's Email]",
96
- "phone": "[Candidate's Phone]",
97
- "linkedin": "[Candidate's LinkedIn]",
98
- "languages": "Hindi,English",
99
- "interests": "Cricket",
100
- "location": "[Candidate's Location]",
101
- "role": "[Candidate's Role]"
102
- },
103
- "professionalSummary": "[Candidate's Professional Summary]",
104
- "skills": ["skill1", "skill2"],
105
- "workExperience": [
106
- {
107
- "title": "[Job Title]",
108
- "company": "[Company Name]",
109
- "location": "[Location]",
110
- "startDate": "[Start Date]",
111
- "endDate": "[End Date]",
112
- "responsibilities": ["[Responsibility 1]", "[Responsibility 2]"],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  "projects": [
114
  {
115
- "title": "[Project Title]",
116
- "description": "[Project Description]"
117
  }
118
- ]
119
- }
120
- ],
121
- "education": [
122
- {
123
- "degree": "[Degree]",
124
- "institution": "[Institution]",
125
- "location": "[Location]",
126
- "graduationDate": "[Graduation Date]"
127
  }
128
- ],
129
- "certifications": ["[Certification 1]", "[Certification 2]"] ,
130
- "extraCurricular": "[Extra Curricular Activities]",
131
- "achievment": "[Achievements]"
132
- }
133
 
134
  Instructions:
135
  - Extract details accurately from the given resume.
 
90
  You are an expert at structuring resumes in JSON format. Given a modified resume text, extract the relevant details and convert them into the following structured JSON format:
91
 
92
  {
93
+ "profileDetails": {
94
+ "firstName": "",
95
+ "lastName": "",
96
+ "email": "",
97
+ "contact": "",
98
+ "country": "",
99
+ "jobTitle": "",
100
+ "social": "",
101
+ "profileDesc": "",
102
+ "address": "",
103
+ "city": "",
104
+ "state": "",
105
+ "zipCode": ""
106
+ },
107
+ "professionalExperience": [
108
+ {
109
+ "positionTitle": "",
110
+ "location": "",
111
+ "company": "",
112
+ "description": "",
113
+ "startDate": "",
114
+ "endDate": ""
115
+ }
116
+ ],
117
+ "education": [
118
+ {
119
+ "institute": "",
120
+ "schoolLocation": "",
121
+ "degree": "",
122
+ "field": "",
123
+ "grade": "",
124
+ "startDate": "",
125
+ "endDate": ""
126
+ }
127
+ ],
128
+ "skills": [""],
129
+ "hobbies": [""],
130
+ "languages": [""],
131
+ "certifications": [""],
132
  "projects": [
133
  {
134
+ "title": "",
135
+ "description": ""
136
  }
137
+ ],
138
+ "jobPreferences": {
139
+ "compTarget": "",
140
+ "strength": "",
141
+ "roleTarget": ""
142
+ },
143
+ "jobDescription": ""
 
 
144
  }
 
 
 
 
 
145
 
146
  Instructions:
147
  - Extract details accurately from the given resume.