Samay42 commited on
Commit
6b37c04
·
verified ·
1 Parent(s): e14c4f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -23,22 +23,22 @@ def get_gemini_response(prompt):
23
  return response.text
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 candidates 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
 
43
  analysis = get_gemini_response(prompt + text)
44
  return analysis
 
23
  return response.text
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 brief summary of the resume, including the candidate's main interests and the fields they are most passionate about.\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
+ "The resume indicates a strong background and interest in machine learning, data science, and software development. The candidate has worked on several projects involving machine learning algorithms, data preprocessing, and building software applications. They have demonstrated proficiency in Python, Java, and various machine learning frameworks. The candidate is passionate about solving complex problems using AI and has a keen interest in continuing to develop their skills in this area.\n\n"
33
+ "### Percentage Distribution of Fields/Domains\n"
34
+ "Note: only include standard technologies as keywords.\n"
35
+ "- Machine Learning (ML): 40%\n"
36
+ " - Keywords: Algorithms, Keras, PyTorch, Scikit-Learn, Predictive Models\n"
37
+ "- Data Science (DS): 30%\n"
38
+ " - Keywords: Data Analysis, Pandas, NumPy, Visualization, Statistical Methods\n"
39
+ "- Software Development (SD): 30%\n"
40
+ " - Keywords: Python, Java, Software Engineering, APIs, Git\n"
41
+ )
42
 
43
  analysis = get_gemini_response(prompt + text)
44
  return analysis