Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 47 |
-
"- Weak\n"
|
| 48 |
-
"-
|
| 49 |
-
"-
|
| 50 |
-
"
|
| 51 |
-
"
|
|
|
|
|
|
|
| 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
|