avizard commited on
Commit
3c1fa35
1 Parent(s): e8417b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,10 +34,10 @@ def get_openai_response(job_description, resume_text, prompt_type):
34
  Please calculate the percentage match between the resume and the job description, indicating the degree to which the candidate meets the job requirements. Begin your response with the percentage match, followed by any critical keywords or qualifications that are missing from the resume. Conclude with your final thoughts on the applicant's suitability for the position, considering the match analysis and any areas where the resume could be improved to better align with the job description.
35
  """
36
 
37
- response = openai.completions.create(
38
- model="gpt-3.5-turbo-instruct",
39
  prompt=prompt,
40
- temperature=0.5,
41
  max_tokens=1024, # Adjusted to allow for more detailed responses
42
  top_p=1.0,
43
  frequency_penalty=0.0,
 
34
  Please calculate the percentage match between the resume and the job description, indicating the degree to which the candidate meets the job requirements. Begin your response with the percentage match, followed by any critical keywords or qualifications that are missing from the resume. Conclude with your final thoughts on the applicant's suitability for the position, considering the match analysis and any areas where the resume could be improved to better align with the job description.
35
  """
36
 
37
+ response = openai.Completion.create(
38
+ engine="gpt-3.5-turbo-instruct", # Adjust as necessary
39
  prompt=prompt,
40
+ temperature=0.7,
41
  max_tokens=1024, # Adjusted to allow for more detailed responses
42
  top_p=1.0,
43
  frequency_penalty=0.0,