Update app.py
Browse files
app.py
CHANGED
@@ -23,22 +23,22 @@ def get_gemini_response(prompt):
|
|
23 |
return response.text
|
24 |
|
25 |
def analyze_resume(text):
|
26 |
-
|
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
|
|
|
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
|