qqwjq1981 commited on
Commit
871bb78
·
verified ·
1 Parent(s): 25565c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.4
580
  else:
581
  # Linearly scale between cps 10 -> 25 and speed 1.0 -> 1.3
582
- slope = (1.4 - 1.0) / (25 - 10)
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