Spaces:
Running
Running
a bit more time tuning :)
Browse files
app.py
CHANGED
@@ -92,9 +92,9 @@ def get_duration(input_audio, model_id: str, do_inversion: bool,
|
|
92 |
raise gr.Error('Input audio missing!')
|
93 |
duration = min(utils.get_duration(input_audio), 30)
|
94 |
|
95 |
-
time_per_iter_of_full = factor * ((t_start /100 * steps)*2 + mult) * 0.
|
96 |
print('expected time:', time_per_iter_of_full / 30 * duration)
|
97 |
-
return time_per_iter_of_full / 30 * duration
|
98 |
|
99 |
|
100 |
@spaces.GPU(duration=get_duration)
|
|
|
92 |
raise gr.Error('Input audio missing!')
|
93 |
duration = min(utils.get_duration(input_audio), 30)
|
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 min(15, time_per_iter_of_full / 30 * duration)
|
98 |
|
99 |
|
100 |
@spaces.GPU(duration=get_duration)
|