fffiloni commited on
Commit
1d0cbd5
·
verified ·
1 Parent(s): 2e70bd0

reduce zerogpu duration

Browse files
Files changed (1) hide show
  1. webgui.py +1 -1
webgui.py CHANGED
@@ -269,7 +269,7 @@ def trim_audio(file_path, output_path, max_duration=5):
269
  print(f"Audio trimmed and saved as {output_path}")
270
  return output_path
271
 
272
- @spaces.GPU(duration=240)
273
  def generate_video(uploaded_img, uploaded_audio, width, height, length, seed, facemask_dilation_ratio, facecrop_dilation_ratio, context_frames, context_overlap, cfg, steps, sample_rate, fps, device, progress=gr.Progress(track_tqdm=True)):
274
  if is_shared_ui:
275
  gr.Info("Trimming audio to max 5 seconds. Duplicate the space for unlimited audio length.")
 
269
  print(f"Audio trimmed and saved as {output_path}")
270
  return output_path
271
 
272
+ @spaces.GPU(duration=200)
273
  def generate_video(uploaded_img, uploaded_audio, width, height, length, seed, facemask_dilation_ratio, facecrop_dilation_ratio, context_frames, context_overlap, cfg, steps, sample_rate, fps, device, progress=gr.Progress(track_tqdm=True)):
274
  if is_shared_ui:
275
  gr.Info("Trimming audio to max 5 seconds. Duplicate the space for unlimited audio length.")