Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -11,15 +11,15 @@ genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|
|
11 |
# Initialize the generative model
|
12 |
model = genai.GenerativeModel("gemini-pro")
|
13 |
|
14 |
-
def modelFeedback(ats_score, resume_data):
|
15 |
# Create the input prompt template
|
16 |
input_prompt_template = """
|
17 |
You are an HR assistant reviewing resumes. The ATS score for the resume is {ats_score}.
|
18 |
-
For each resume, provide a summary(100 words), include the strengths of the resume and if the resume is fit for the job based on the
|
19 |
Resume Content: {resume_data}
|
20 |
"""
|
21 |
# Format the prompt with ATS score, missing skills, and resume data
|
22 |
-
input_prompt = input_prompt_template.format(ats_score=ats_score, resume_data=resume_data)
|
23 |
|
24 |
# Generate response
|
25 |
response = model.generate_content(input_prompt)
|
|
|
11 |
# Initialize the generative model
|
12 |
model = genai.GenerativeModel("gemini-pro")
|
13 |
|
14 |
+
def modelFeedback(ats_score, resume_data, job_description):
|
15 |
# Create the input prompt template
|
16 |
input_prompt_template = """
|
17 |
You are an HR assistant reviewing resumes. The ATS score for the resume is {ats_score}.
|
18 |
+
For each resume, provide a summary(100 words), include the strengths of the resume and if the resume is fit for the job based on the {job_description}.
|
19 |
Resume Content: {resume_data}
|
20 |
"""
|
21 |
# Format the prompt with ATS score, missing skills, and resume data
|
22 |
+
input_prompt = input_prompt_template.format(ats_score=ats_score, resume_data=resume_data, job_description=job_description)
|
23 |
|
24 |
# Generate response
|
25 |
response = model.generate_content(input_prompt)
|