Spaces:
Sleeping
Sleeping
File size: 1,201 Bytes
438c749 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | def generate_interview_report(results):
report = []
report.append("INTERVIEW PERFORMANCE REPORT\n")
report.append(f"Overall Confidence Score: {results['final_score']}%\n")
report.append("Strengths:")
if results["speech_rate"] >= 110 and results["speech_rate"] <= 160:
report.append("- Good speaking pace")
if results["grammar_score"] >= 80:
report.append("- Strong grammar usage")
if results["eye_contact_score"] >= 70:
report.append("- Maintains good eye contact")
if results["answer_score"] >= 70:
report.append("- Relevant and structured answer")
report.append("\nAreas for Improvement:")
if results["filler_count"] > 5:
report.append("- Reduce filler words")
if results["grammar_score"] < 70:
report.append("- Improve sentence grammar")
if results["eye_contact_score"] < 60:
report.append("- Maintain better eye contact")
if results["topic_score"] < 60:
report.append("- Stay focused on the interview question")
report.append("\nRecommendation:")
report.append("Practice structured answers and maintain confident body language.")
return "\n".join(report) |