Coco-18 commited on
Commit
75e7668
·
verified ·
1 Parent(s): 41a5193

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +3 -1
evaluate.py CHANGED
@@ -776,12 +776,14 @@ def handle_evaluation_request(request, reference_dir, output_dir, sample_rate):
776
  # Determine feedback based on score
777
  is_correct = best_score >= 70.0
778
 
 
779
  if best_score >= 90.0:
780
  feedback = "Perfect pronunciation! Excellent job!"
781
  elif best_score >= 80.0:
782
  feedback = "Great pronunciation! Your accent is very good."
 
783
  elif best_score >= 70.0:
784
- feedback = "Good pronunciation. Keep practicing!"
785
  elif best_score >= 50.0:
786
  feedback = "Fair attempt. Try focusing on the syllables that differ from the sample."
787
  else:
 
776
  # Determine feedback based on score
777
  is_correct = best_score >= 70.0
778
 
779
+ # To something like this
780
  if best_score >= 90.0:
781
  feedback = "Perfect pronunciation! Excellent job!"
782
  elif best_score >= 80.0:
783
  feedback = "Great pronunciation! Your accent is very good."
784
+ # This is no longer a "pass" since you changed threshold to 80
785
  elif best_score >= 70.0:
786
+ feedback = "Almost there. Keep practicing to improve your pronunciation."
787
  elif best_score >= 50.0:
788
  feedback = "Fair attempt. Try focusing on the syllables that differ from the sample."
789
  else: