Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def generate_question(response, resume_embeddings, job_desc):
|
|
39 |
for section, embedding in resume_embeddings.items()
|
40 |
}
|
41 |
most_relevant_section = max(similarities, key=similarities.get)
|
42 |
-
prompt = f"You are a
|
43 |
inputs = gpt_tokenizer(prompt, return_tensors="pt", truncation=True)
|
44 |
outputs = gpt_model.generate(**inputs, max_length=50, num_beams=3, early_stopping=True)
|
45 |
question = gpt_tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
|
39 |
for section, embedding in resume_embeddings.items()
|
40 |
}
|
41 |
most_relevant_section = max(similarities, key=similarities.get)
|
42 |
+
prompt = f"You are a interveiwer . Based on the candidate's experience in {most_relevant_section} and the job description, ask a follow-up question."
|
43 |
inputs = gpt_tokenizer(prompt, return_tensors="pt", truncation=True)
|
44 |
outputs = gpt_model.generate(**inputs, max_length=50, num_beams=3, early_stopping=True)
|
45 |
question = gpt_tokenizer.decode(outputs[0], skip_special_tokens=True)
|