Update app.py
Browse files
app.py
CHANGED
@@ -24,21 +24,34 @@ def get_gemini_response(prompt):
|
|
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 |
-
|
29 |
-
"
|
30 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
"### Summary\n"
|
32 |
-
"This resume
|
|
|
33 |
"### Percentage Distribution of Fields/Domains\n"
|
34 |
-
"
|
35 |
-
"- [Field/Domain 1]: X%\n"
|
36 |
" - Keywords: [Relevant Keywords]\n"
|
37 |
-
"- [Field/Domain 2]
|
38 |
" - Keywords: [Relevant Keywords]\n"
|
39 |
-
"- [Field/Domain 3]
|
40 |
" - Keywords: [Relevant Keywords]\n"
|
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 with a focus on extracting precise, relevant information. Analyze the following resume text and provide the following detailed outputs:\n\n"
|
28 |
+
|
29 |
+
"1. **Summary**:\n"
|
30 |
+
" - Provide a concise and accurate summary of the resume.\n"
|
31 |
+
" - Focus on the candidate's most important foundational skills, key technical competencies, and significant work experiences.\n"
|
32 |
+
" - Highlight their primary areas of interest, notable projects, and any certifications directly relevant to their field.\n"
|
33 |
+
" - Ensure that the summary directly aligns with the key details provided in the resume, avoiding any interpretation or unnecessary extrapolation. Maintain a neutral, objective tone.\n\n"
|
34 |
+
|
35 |
+
"2. **Percentage Distribution of Fields/Domains**:\n"
|
36 |
+
" - Break down the resume content into specific fields or domains, with a detailed percentage distribution.\n"
|
37 |
+
" - Extract and list relevant keywords from each field/domain.\n"
|
38 |
+
" - Ensure that the total distribution sums up to 100%.\n"
|
39 |
+
" - Keywords should be limited to standard technical terms or industry-specific phrases, with no addition of non-essential details.\n"
|
40 |
+
" - Ensure that the percentage distribution and keywords are strictly based on the content present in the resume text.\n\n"
|
41 |
+
|
42 |
+
"### Example Format:\n\n"
|
43 |
"### Summary\n"
|
44 |
+
"This resume highlights a candidate with strong foundational skills in [Key Fields/Domains]. They have demonstrated technical proficiency in [Primary Technical Skills] and possess significant experience in [Type of Experience (e.g., internships, projects)]. The candidate has completed notable projects such as [Relevant Projects] and holds certifications in [Relevant Certifications]. Their primary areas of interest include [Primary Interests], demonstrating a strong alignment with their technical expertise.\n\n"
|
45 |
+
|
46 |
"### Percentage Distribution of Fields/Domains\n"
|
47 |
+
"- **[Field/Domain 1]**: X%\n"
|
|
|
48 |
" - Keywords: [Relevant Keywords]\n"
|
49 |
+
"- **[Field/Domain 2]**: Y%\n"
|
50 |
" - Keywords: [Relevant Keywords]\n"
|
51 |
+
"- **[Field/Domain 3]**: Z%\n"
|
52 |
" - Keywords: [Relevant Keywords]\n"
|
53 |
)
|
54 |
+
|
55 |
analysis = get_gemini_response(prompt + text)
|
56 |
return analysis
|
57 |
|