Samay42 commited on
Commit
57999c5
·
verified ·
1 Parent(s): 38ab221

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -9
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
- "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
 
 
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