Eng-Musa commited on
Commit
8100fd2
·
1 Parent(s): e0b3107

exract name from cv

Browse files
services/new/google/__pycache__/gemini_extractor.cpython-312.pyc CHANGED
Binary files a/services/new/google/__pycache__/gemini_extractor.cpython-312.pyc and b/services/new/google/__pycache__/gemini_extractor.cpython-312.pyc differ
 
services/new/google/gemini_extractor.py CHANGED
@@ -41,6 +41,7 @@ Ensure all sections, including tables, education items, and leadership entries,
41
  "category": "engineering | design | finance | marketing | sales | operations | healthcare | legal | education | hr | other",
42
  "summary": "professional summary text or empty string",
43
  "contact": {{
 
44
  "email": "",
45
  "phone": "",
46
  "location": ""
@@ -230,8 +231,9 @@ class GeminiCvExtractor:
230
 
231
  contact = data.get("contact")
232
  if not isinstance(contact, dict):
233
- data["contact"] = {"email": "", "phone": "", "location": ""}
234
  else:
 
235
  contact.setdefault("email", "")
236
  contact.setdefault("phone", "")
237
  contact.setdefault("location", "")
 
41
  "category": "engineering | design | finance | marketing | sales | operations | healthcare | legal | education | hr | other",
42
  "summary": "professional summary text or empty string",
43
  "contact": {{
44
+ "name": "full name of the candidate found at the top of the CV",
45
  "email": "",
46
  "phone": "",
47
  "location": ""
 
231
 
232
  contact = data.get("contact")
233
  if not isinstance(contact, dict):
234
+ data["contact"] = {"name": "", "email": "", "phone": "", "location": ""}
235
  else:
236
+ contact.setdefault("name", "")
237
  contact.setdefault("email", "")
238
  contact.setdefault("phone", "")
239
  contact.setdefault("location", "")