cdcvd commited on
Commit
e777cf2
·
verified ·
1 Parent(s): cc447f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -11
app.py CHANGED
@@ -22,17 +22,14 @@ def evaluate_resume(pdf_file, job_description):
22
  # Extract text from PDF
23
  resume_text = extract_text_from_pdf(pdf_file)
24
 
25
- prompt = f"""
26
- As an experienced Applicant Tracking System (ATS) analyst,
27
- with profound knowledge in technology, software engineering, data science,
28
- and big data engineering, your role involves evaluating resumes against job descriptions.
29
- Recognizing the competitive job market, provide top-notch assistance for resume improvement.
30
- Your goal is to analyze the resume against the given job description,
31
- assign a percentage match based on key criteria, and pinpoint missing keywords accurately.
32
- resume:{resume_text}
33
- description:{job_description}
34
- I want the response in one single string having the structure
35
- {{"Job Description Match":"%","Missing Keywords":"","Candidate Summary":"","Experience":""}}
36
  """
37
 
38
  response = openai.ChatCompletion.create(
 
22
  # Extract text from PDF
23
  resume_text = extract_text_from_pdf(pdf_file)
24
 
25
+ prompt = f"""به عنوان یک تحلیلگر با تجربه سیستم ردیابی متقاضی (ATS)، نقش شما شامل ارزیابی رزومه در برابر شرح شغل است.
26
+ هدف شما تجزیه و تحلیل رزومه بر اساس شرح شغل داده شده است،
27
+ یک درصد تطابق را بر اساس معیارهای کلیدی در رزومه و شرح شغل ذکر شده را به دقت تعیین کنید و تعداد کلمات کلیدی گمشده را مشخص کنید.
28
+ رزومه:{resume_text}
29
+ شرح شغل:{job_description}
30
+ من پاسخ را در یک رشته با ساختار زیر می خواهم
31
+
32
+ {{"تطابق شرح شغل":"%"، "تعداد کلمات کلیدی از دست رفته":""، "تعداد کلمات کلیدی منطبق با هم ":" }}
 
 
 
33
  """
34
 
35
  response = openai.ChatCompletion.create(