Update app.py
Browse files
app.py
CHANGED
@@ -576,10 +576,10 @@ def calibrated_speed(text, desired_duration):
|
|
576 |
if cps < 10:
|
577 |
return 1.0
|
578 |
elif cps > 25:
|
579 |
-
return 1.
|
580 |
else:
|
581 |
# Linearly scale between cps 10 -> 25 and speed 1.0 -> 1.3
|
582 |
-
slope = (1.
|
583 |
return 1.0 + slope * (cps - 10)
|
584 |
|
585 |
|
|
|
576 |
if cps < 10:
|
577 |
return 1.0
|
578 |
elif cps > 25:
|
579 |
+
return 1.6
|
580 |
else:
|
581 |
# Linearly scale between cps 10 -> 25 and speed 1.0 -> 1.3
|
582 |
+
slope = (1.6 - 1.0) / (25 - 10)
|
583 |
return 1.0 + slope * (cps - 10)
|
584 |
|
585 |
|