Update app.py
Browse files
app.py
CHANGED
|
@@ -24,22 +24,21 @@ 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 |
-
|
| 43 |
analysis = get_gemini_response(prompt + text)
|
| 44 |
return analysis
|
| 45 |
|
|
|
|
| 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 concise summary of the resume, focusing on the candidate’s foundational skills, key technical competencies, and significant experiences. Mention their primary areas of interest and the most relevant projects or certifications. Avoid unnecessary details and focus on the core strengths of 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 [Key Fields/Domains]. The candidate has demonstrated proficiency in [Primary Technical Skills] and has experience in [Type of Experience (e.g., internships, projects)]. Their significant projects include [Relevant Projects], and they have pursued certifications in [Relevant Certifications/Fields]. The candidate is passionate about [Primary Interests], and their work highlights their ability to apply their skills in real-world scenarios.\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 |
analysis = get_gemini_response(prompt + text)
|
| 43 |
return analysis
|
| 44 |
|