HARISH20205 commited on
Commit
e450f6f
·
1 Parent(s): 9ac3eaa

skills missing elements

Browse files
Files changed (2) hide show
  1. Process/extract.py +1 -1
  2. Process/utils.py +1 -6
Process/extract.py CHANGED
@@ -16,7 +16,7 @@ def extract_text_from_pdf(file_path_or_url):
16
  raise Exception(f"Failed to download the file: {response.status_code}")
17
 
18
  # Open the PDF from the downloaded bytes
19
- doc = fitz.open(stream=io.BytesIO(response.content), filetype="pdf")a
20
  else:
21
  # Open the PDF from a local file path
22
  doc = fitz.open(file_path_or_url)
 
16
  raise Exception(f"Failed to download the file: {response.status_code}")
17
 
18
  # Open the PDF from the downloaded bytes
19
+ doc = fitz.open(stream=io.BytesIO(response.content), filetype="pdf")
20
  else:
21
  # Open the PDF from a local file path
22
  doc = fitz.open(file_path_or_url)
Process/utils.py CHANGED
@@ -82,12 +82,7 @@ class ATSResumeParser:
82
  "explanation": "No job description provided",
83
  }
84
 
85
- prompt = f"""Skills: {','.join(skills[:20])}.
86
- Job description: {job_description[:500]}.
87
- Evaluate the skills match against this job description.
88
- In the 'matching_elements' list, include only skills that directly match the job requirements.
89
- In the 'missing_elements' list, include ONLY specific missing skills from the job description (no paragraphs or lengthy text).
90
- Rate the overall match on a scale of 0-10."""
91
 
92
  response = self._parse_gemini_response(get_response(prompt, SYSTEM_INSTRUCTION))
93
  return {
 
82
  "explanation": "No job description provided",
83
  }
84
 
85
+ prompt = f"Skills: {','.join(skills[:20])}. Job description: {job_description[:500]}. Rate match. in the missing section list only missing skills dont give paragraphs or any big content"
 
 
 
 
 
86
 
87
  response = self._parse_gemini_response(get_response(prompt, SYSTEM_INSTRUCTION))
88
  return {