Spaces:
Runtime error
Runtime error
Karthikeyan commited on
Commit ·
1b7f4c1
1
Parent(s): b92bfac
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,36 +35,26 @@ class ResumeAnalyser:
|
|
| 35 |
resume = self.extract_text_from_file(resume_path.name)
|
| 36 |
response = openai.Completion.create(
|
| 37 |
engine = "text-davinci-003",
|
| 38 |
-
prompt = f"""
|
| 39 |
-
Given the job description and resume, assess the matching percentage to 100; if 100 percent is not matched, mention the remaining percentage with reason. **Job Description:**{job_description}**Resume:**{resume}
|
| 40 |
**Detailed Analysis:**
|
| 41 |
-
Introduction to say we
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
[
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
[
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
\nRecommend Course:\n
|
| 58 |
-
[mention specific course and its links to recommend the candidate for job description needs].
|
| 59 |
-
\nExperience: \n
|
| 60 |
-
[mention specific experience to recommend the candidate for job description needs].
|
| 61 |
-
\nTailor Your Application: \n
|
| 62 |
-
[Emphasize relevant areas].
|
| 63 |
-
\nCertifications:
|
| 64 |
-
[Pursue certifications in the mentioned area].
|
| 65 |
-
Feel free to contact us for further clarification.
|
| 66 |
Best wishes,
|
| 67 |
-
Your job is to write a proper E-Mail to the candidate from the organization with the job role, the candidate's name,
|
| 68 |
temperature=0,
|
| 69 |
max_tokens=1000,
|
| 70 |
stop=None,
|
|
|
|
| 35 |
resume = self.extract_text_from_file(resume_path.name)
|
| 36 |
response = openai.Completion.create(
|
| 37 |
engine = "text-davinci-003",
|
| 38 |
+
prompt = f"""Given the job description and the resume, assess the matching percentage to 100 and if 100 percentage not matched mention the remaining percentage with reason. **Job Description:**{job_description}**Resume:**{resume}
|
|
|
|
| 39 |
**Detailed Analysis:**
|
| 40 |
+
Introduction to say we've assessment the resume
|
| 41 |
+
the result should be in this format:
|
| 42 |
+
Matched Percentage: Precisely [get matching percentage between job description and resume]%.\n
|
| 43 |
+
Qualification Matching Percentage: [matching percentage between job description and resume qualifications].\n
|
| 44 |
+
Skills Matching Percentage: [matching percentage between job description and resume skills].\n
|
| 45 |
+
Experience Matching Percentage: [matching percentage between job description and resume experience].\n
|
| 46 |
+
Reason : [Reasons for why this resume matched and not matched.].\n
|
| 47 |
+
Skills To Improve : [Mention the skills to improve for the candidate according to the given job description. If there are no matches, simply say N/A.].\n
|
| 48 |
+
Keywords : [Return the matched keywords from resume and job_description. If there are no matches, simply say N/A.]\n
|
| 49 |
+
Company : [Extracted company name from job description].\n
|
| 50 |
+
Irrevelant: [mention the irrevelant skills and expericence]\n
|
| 51 |
+
Recommend Course: [mention specific course to recommend the candidate for job description needs].\n
|
| 52 |
+
Experience: [mention specific experience to recommend the candidate for job description needs].\n
|
| 53 |
+
Tailor Your Application: [Emphasize relevant areas].\n
|
| 54 |
+
Certifications: [Pursue certifications in mention area].\n
|
| 55 |
+
Feel free to contact us for further clarification.\n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
Best wishes,
|
| 57 |
+
Your job is to write a proper E-Mail to the candidate from the organization with the job role, the candidate's name, organization name, and the body of this E-Mail should be in the above format.""",
|
| 58 |
temperature=0,
|
| 59 |
max_tokens=1000,
|
| 60 |
stop=None,
|