Spaces:
Running
Running
Update app.py
Browse files
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 >
|
733 |
-
return
|
734 |
else:
|
735 |
-
slope = (
|
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):
|