reduce zerogpu duration
Browse files
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=
|
| 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.")
|