Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -14,16 +14,18 @@ model = genai.GenerativeModel("gemini-pro")
|
|
14 |
def modelFeedback(ats_score, resume_data):
|
15 |
# Create the input prompt to generate ATS analysis and resume ranking
|
16 |
input_prompt = f"""
|
17 |
-
You are an ATS Score analyzer.
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
22 |
Resumes and ATS Scores:
|
23 |
{resume_data}
|
24 |
"""
|
25 |
|
26 |
|
|
|
27 |
# Combine the prompt and resume data for input to the model
|
28 |
input_data = [input_prompt, resume_data]
|
29 |
|
|
|
14 |
def modelFeedback(ats_score, resume_data):
|
15 |
# Create the input prompt to generate ATS analysis and resume ranking
|
16 |
input_prompt = f"""
|
17 |
+
You are an ATS Score analyzer.
|
18 |
+
For each resume provided:
|
19 |
+
1. Calculate the ATS Score as a percentage {int(ats_score*100)}%.
|
20 |
+
2. Generate a summary (up to 100 words) for each resume.
|
21 |
+
3. Rank the resumes from highest to lowest based on their ATS score and display the ATS score, summary, and rank once for each resume.
|
22 |
+
|
23 |
Resumes and ATS Scores:
|
24 |
{resume_data}
|
25 |
"""
|
26 |
|
27 |
|
28 |
+
|
29 |
# Combine the prompt and resume data for input to the model
|
30 |
input_data = [input_prompt, resume_data]
|
31 |
|