Spaces:
Running
Running
Upload scoring.py
Browse files- scoring.py +3 -3
scoring.py
CHANGED
@@ -74,11 +74,11 @@ def calculate_pronunciation_accuracy(word_pronunciation_scores, fluency_score, b
|
|
74 |
fluency_score = fluency_score / 100
|
75 |
|
76 |
avg_pronunciation_score = (avg_pronunciation_score - 1) / 2
|
77 |
-
avg_weight = 0.
|
78 |
-
flu_weight = 0.
|
79 |
combined_score = avg_weight * avg_pronunciation_score + flu_weight * fluency_score
|
80 |
# Scale to 10% - 90%
|
81 |
-
final_score = 10 + combined_score *
|
82 |
|
83 |
return final_score
|
84 |
|
|
|
74 |
fluency_score = fluency_score / 100
|
75 |
|
76 |
avg_pronunciation_score = (avg_pronunciation_score - 1) / 2
|
77 |
+
avg_weight = 0.75
|
78 |
+
flu_weight = 0.25
|
79 |
combined_score = avg_weight * avg_pronunciation_score + flu_weight * fluency_score
|
80 |
# Scale to 10% - 90%
|
81 |
+
final_score = 10 + combined_score * 80
|
82 |
|
83 |
return final_score
|
84 |
|