hilamanor commited on
Commit
3e1aaa5
1 Parent(s): 511e6ea

a bit more time tuning :)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.2
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)