hilamanor commited on
Commit
6daa825
1 Parent(s): 3e1aaa5

AT LEAST 15 seconds, no maximum 🤦‍♀️

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 min(15, time_per_iter_of_full / 30 * duration)
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)