mbosse99 commited on
Commit
cfd5572
·
1 Parent(s): 051ff67

prints to debug

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -172,6 +172,7 @@ def send_evaluation(history, job, resume, job_params):
172
  # Sender- und Empfänger-E-Mail-Adressen
173
  sender_email = "[email protected]"
174
  receiver_email = job_params[1]
 
175
 
176
  ai_summary = "TEST Summary"
177
  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."
@@ -188,6 +189,7 @@ def send_evaluation(history, job, resume, job_params):
188
  ],
189
  )
190
  ai_summary = res.choices[0]["message"]["content"]
 
191
  # E-Mail-Nachricht erstellen
192
  subject = "Evaluation for the job: "+job_params[0]
193
  message = f"""
@@ -228,6 +230,7 @@ Your Evaluation Tool
228
  resume_attachment.add_header('Content-Disposition', 'attachment', filename='resume.txt')
229
  msg.attach(resume_attachment)
230
 
 
231
  # SMTP-Verbindung herstellen und E-Mail senden
232
  try:
233
  server = smtplib.SMTP(smtp_server, smtp_port)
 
172
  # Sender- und Empfänger-E-Mail-Adressen
173
  sender_email = "[email protected]"
174
  receiver_email = job_params[1]
175
+ print(receiver_email)
176
 
177
  ai_summary = "TEST Summary"
178
  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."
 
189
  ],
190
  )
191
  ai_summary = res.choices[0]["message"]["content"]
192
+ print(ai_summary)
193
  # E-Mail-Nachricht erstellen
194
  subject = "Evaluation for the job: "+job_params[0]
195
  message = f"""
 
230
  resume_attachment.add_header('Content-Disposition', 'attachment', filename='resume.txt')
231
  msg.attach(resume_attachment)
232
 
233
+ print("for der Mail")
234
  # SMTP-Verbindung herstellen und E-Mail senden
235
  try:
236
  server = smtplib.SMTP(smtp_server, smtp_port)