bangaboy commited on
Commit
9c50a84
·
verified ·
1 Parent(s): 610e12a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -100,7 +100,8 @@ def parse_resume(file_uploaded, api_key):
100
  4. Phone Number
101
  5. Education History (including degree, institution, graduation year, and field of study)
102
  6. Companies worked at with positions and EXACT duration (e.g., "Jan 2020 - Present" or "2018-2020")
103
- 7. LinkedIn Profile URL
 
104
 
105
  Return the information in this JSON format:
106
  {
@@ -124,9 +125,11 @@ def parse_resume(file_uploaded, api_key):
124
  "duration": ""
125
  }
126
  ],
 
127
  "linkedin": ""
128
  }
129
- For work experience durations, please specify exact dates in format: "MMM YYYY - MMM YYYY" or "YYYY - Present".
 
130
  Only return the JSON object, nothing else. If any field is not found, leave it empty."""
131
 
132
  try:
@@ -229,6 +232,14 @@ def main():
229
  else:
230
  st.write("No work experience found")
231
 
 
 
 
 
 
 
 
 
232
  # Display LinkedIn profile
233
  st.write("**LinkedIn Profile:**", result.get('linkedin', 'Not found'))
234
 
 
100
  4. Phone Number
101
  5. Education History (including degree, institution, graduation year, and field of study)
102
  6. Companies worked at with positions and EXACT duration (e.g., "Jan 2020 - Present" or "2018-2020")
103
+ 7. Skills
104
+ 8. LinkedIn Profile URL
105
 
106
  Return the information in this JSON format:
107
  {
 
125
  "duration": ""
126
  }
127
  ],
128
+ "skills": [],
129
  "linkedin": ""
130
  }
131
+ For skills include tools and technologies in output if present any in resume.
132
+ For work experience durations, please specify exact dates in format: "MMM YYYY - MMM YYYY" or "YYYY - Present" , please return in one order either in ascending or descending.
133
  Only return the JSON object, nothing else. If any field is not found, leave it empty."""
134
 
135
  try:
 
232
  else:
233
  st.write("No work experience found")
234
 
235
+ # Display Skills
236
+ print("\nSkills:")
237
+ if result.get('skills'):
238
+ for skill in result['skills']:
239
+ print(f"- {skill}")
240
+ else:
241
+ print("- No skills found")
242
+
243
  # Display LinkedIn profile
244
  st.write("**LinkedIn Profile:**", result.get('linkedin', 'Not found'))
245