Spaces:
Running
Running
AT LEAST 15 seconds, no maximum 🤦♀️
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def get_duration(input_audio, model_id: str, do_inversion: bool,
|
|
94 |
|
95 |
time_per_iter_of_full = factor * ((t_start /100 * steps)*2 + mult) * 0.25
|
96 |
print('expected time:', time_per_iter_of_full / 30 * duration)
|
97 |
-
return
|
98 |
|
99 |
|
100 |
@spaces.GPU(duration=get_duration)
|
|
|
94 |
|
95 |
time_per_iter_of_full = factor * ((t_start /100 * steps)*2 + mult) * 0.25
|
96 |
print('expected time:', time_per_iter_of_full / 30 * duration)
|
97 |
+
return max(15, time_per_iter_of_full / 30 * duration)
|
98 |
|
99 |
|
100 |
@spaces.GPU(duration=get_duration)
|