Update app.py
#1
by Samay42 - opened
app.py
CHANGED
|
@@ -24,21 +24,22 @@ def get_gemini_response(prompt):
|
|
| 24 |
|
| 25 |
def analyze_resume(text):
|
| 26 |
prompt = (
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
| 42 |
analysis = get_gemini_response(prompt + text)
|
| 43 |
return analysis
|
| 44 |
|
|
|
|
| 24 |
|
| 25 |
def analyze_resume(text):
|
| 26 |
prompt = (
|
| 27 |
+
"You are an expert resume analyst. Analyze the following resume text and provide the following:\n\n"
|
| 28 |
+
"1. A comprehensive summary of the candidate’s skills, interests, and experience. Highlight their main technical competencies, areas of interest, and any certifications or academic qualifications they have pursued. Emphasize specific projects, internships, or work experiences, and mention any relevant tools, programming languages, or technologies used by the candidate.\n"
|
| 29 |
+
"2. A detailed percentage distribution of fields/domains present in the resume, with keywords extracted from the resume. Ensure the total sums up to 100%.\n"
|
| 30 |
+
"Here is an example of how the output should look like:\n\n"
|
| 31 |
+
"### Summary\n"
|
| 32 |
+
"This resume showcases a candidate with a strong foundation in [Field/Domain 1], [Field/Domain 2], and [Field/Domain 3]. The candidate has demonstrated proficiency in [Specific Tools/Technologies] and has experience in both [Internships/Projects/Work Experience]. They are passionate about [Specific Interests], and their projects include [Project Examples]. The candidate has also pursued certifications in [Certifications] and has a solid academic background in [Relevant Degrees/Fields].\n\n"
|
| 33 |
+
"### Percentage Distribution of Fields/Domains\n"
|
| 34 |
+
"Note: only include standard technologies as keywords.\n"
|
| 35 |
+
"- [Field/Domain 1]: X%\n"
|
| 36 |
+
" - Keywords: [Relevant Keywords]\n"
|
| 37 |
+
"- [Field/Domain 2]: Y%\n"
|
| 38 |
+
" - Keywords: [Relevant Keywords]\n"
|
| 39 |
+
"- [Field/Domain 3]: Z%\n"
|
| 40 |
+
" - Keywords: [Relevant Keywords]\n"
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
analysis = get_gemini_response(prompt + text)
|
| 44 |
return analysis
|
| 45 |
|