honeyangelhp commited on
Commit
a56ad6d
·
verified ·
1 Parent(s): d2e77e9

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +7 -5
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. For each resume provided:
18
- 1. Calculate the ATS Score as a percentage (multiply the ATS score by 100) and display the result.
19
- 2. Generate a summary (up to 100 words) based on the resume data.
20
- 3. Rank the resumes from highest to lowest based on the ATS Score.
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