mbosse99 commited on
Commit
30c247b
·
1 Parent(s): 6bb0a3b

Everything changed to GPT 4

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -114,7 +114,8 @@ def generateEvaluation( history, job_description_fn,candiate_cv_fn,questions_fn,
114
  prompt = "You are a professional recruiter who has been given a CV and a job description and has created 10 questions based on that. The eventual applicant has entered his answers to the questions. Now you have to evaluate on the basis of the answers if the applicant fits the job in principle. This is the case when about 70percent of all questions have been answered satisfactorily and positively. Keep in mind that an answer must always be fact-based, so if, for example, the question asks for examples, the potential applicant must also give such examples. Please also provide details of which questions were answered positively and why."
115
  try:
116
  res = openai.ChatCompletion.create(
117
- model="gpt-3.5-turbo-16k",
 
118
  messages=[
119
  {
120
  "role": "system",
@@ -139,7 +140,7 @@ def gpt_question_generator(questions_fn, job_description_fn, candiate_cv_fn):
139
  try:
140
  res = openai.ChatCompletion.create(
141
  model="gpt-4",
142
- temperature=0.6,
143
  messages=[
144
  {
145
  "role": "system",
@@ -159,7 +160,7 @@ def ask_gpt_about_evaluation(query):
159
  prompt = "You are a professional recruiter who has been given a job description and a CV to generate 10 questions, which the potential candidate then answers. Based on the answers you created an evaluation. Please answer questions as accurately and helpfully as possible. All answers should be fact based."
160
  try:
161
  res = openai.ChatCompletion.create(
162
- model="gpt-3.5-turbo-16k",
163
  temperature=0.2,
164
  messages=[
165
  {
 
114
  prompt = "You are a professional recruiter who has been given a CV and a job description and has created 10 questions based on that. The eventual applicant has entered his answers to the questions. Now you have to evaluate on the basis of the answers if the applicant fits the job in principle. This is the case when about 70percent of all questions have been answered satisfactorily and positively. Keep in mind that an answer must always be fact-based, so if, for example, the question asks for examples, the potential applicant must also give such examples. Please also provide details of which questions were answered positively and why."
115
  try:
116
  res = openai.ChatCompletion.create(
117
+ model="gpt-4",
118
+ temperature=0.2,
119
  messages=[
120
  {
121
  "role": "system",
 
140
  try:
141
  res = openai.ChatCompletion.create(
142
  model="gpt-4",
143
+ temperature=0.2,
144
  messages=[
145
  {
146
  "role": "system",
 
160
  prompt = "You are a professional recruiter who has been given a job description and a CV to generate 10 questions, which the potential candidate then answers. Based on the answers you created an evaluation. Please answer questions as accurately and helpfully as possible. All answers should be fact based."
161
  try:
162
  res = openai.ChatCompletion.create(
163
+ model="gpt-4",
164
  temperature=0.2,
165
  messages=[
166
  {