Fatima98 commited on
Commit
333c98c
·
verified ·
1 Parent(s): 273e982

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -43,12 +43,14 @@ def process_audio(audio_file, question):
43
  prompt = (
44
  f"Interview Question: {question}\n"
45
  f"Candidate's Answer: {transcript}\n\n"
46
- "You are an experienced interview evaluator. Review the candidate's response below and evaluate it using the following categories:\n"
47
- "- Weak\n"
48
- "- Average\n"
49
- "- Good\n"
50
- "- Excellent\n"
51
- "Also, give a final score out of 100. If there are areas for improvement, suggest how the candidate can improve their response."
 
 
52
  )
53
 
54
  # Get feedback from the model
 
43
  prompt = (
44
  f"Interview Question: {question}\n"
45
  f"Candidate's Answer: {transcript}\n\n"
46
+ "You are an experienced interview evaluator. Review the candidate's response and rate it using the following:\n"
47
+ "- Overall Rating: Weak, Average, Good, or Excellent\n"
48
+ "- Score: Out of 100\n"
49
+ "- Suggestions for improvement (if any)\n\n"
50
+ "Please respond in this format:\n"
51
+ "Overall Rating: <your rating>\n"
52
+ "Score: <your score>\n"
53
+ "Suggestions: <your suggestions>\n"
54
  )
55
 
56
  # Get feedback from the model