qqwjq1981 commited on
Commit
966f4e1
·
verified ·
1 Parent(s): 2dbcb92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -729,10 +729,10 @@ def calibrated_speed(text, desired_duration):
729
  # Truncated linear mapping
730
  if cps < 14:
731
  return 1.0
732
- elif cps > 30:
733
- return 2
734
  else:
735
- slope = (2 - 1.0) / (30 - 14)
736
  return 1.0 + slope * (cps - 14)
737
 
738
  def upload_and_manage(file, target_language, process_mode):
 
729
  # Truncated linear mapping
730
  if cps < 14:
731
  return 1.0
732
+ elif cps > 25.2:
733
+ return 1.7
734
  else:
735
+ slope = (1.7 - 1.0) / (25.2 - 14)
736
  return 1.0 + slope * (cps - 14)
737
 
738
  def upload_and_manage(file, target_language, process_mode):