Update app.py
Browse files
app.py
CHANGED
@@ -366,9 +366,9 @@ def truncated_linear(x):
|
|
366 |
if x < 15:
|
367 |
return 1
|
368 |
elif x > 25:
|
369 |
-
return 1.
|
370 |
else:
|
371 |
-
slope = (1.
|
372 |
return 1 + slope * (x - 15)
|
373 |
|
374 |
def calculate_speed(text, desired_duration):
|
|
|
366 |
if x < 15:
|
367 |
return 1
|
368 |
elif x > 25:
|
369 |
+
return 1.3
|
370 |
else:
|
371 |
+
slope = (1.3 - 1) / (25 - 15)
|
372 |
return 1 + slope * (x - 15)
|
373 |
|
374 |
def calculate_speed(text, desired_duration):
|