Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,17 +115,17 @@ def get_duration(
|
|
| 115 |
progress,
|
| 116 |
):
|
| 117 |
|
| 118 |
-
duration_seconds =
|
| 119 |
|
| 120 |
if num_parts > 10:
|
| 121 |
-
duration_seconds =
|
| 122 |
elif num_parts > 5:
|
| 123 |
-
duration_seconds =
|
| 124 |
|
| 125 |
return int(duration_seconds)
|
| 126 |
|
| 127 |
|
| 128 |
-
@spaces.GPU(duration=
|
| 129 |
def gen_model_n_video(image_path: str,
|
| 130 |
num_parts: int,
|
| 131 |
progress=gr.Progress(track_tqdm=True),):
|
|
|
|
| 115 |
progress,
|
| 116 |
):
|
| 117 |
|
| 118 |
+
duration_seconds = 75
|
| 119 |
|
| 120 |
if num_parts > 10:
|
| 121 |
+
duration_seconds = 120
|
| 122 |
elif num_parts > 5:
|
| 123 |
+
duration_seconds = 90
|
| 124 |
|
| 125 |
return int(duration_seconds)
|
| 126 |
|
| 127 |
|
| 128 |
+
@spaces.GPU(duration=140)
|
| 129 |
def gen_model_n_video(image_path: str,
|
| 130 |
num_parts: int,
|
| 131 |
progress=gr.Progress(track_tqdm=True),):
|