Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,7 +159,7 @@ def get_duration(
|
|
| 159 |
frames = get_num_frames(duration_seconds)
|
| 160 |
factor = frames * width * height / BASE_FRAMES_HEIGHT_WIDTH
|
| 161 |
step_duration = BASE_STEP_DURATION * factor ** 1.5
|
| 162 |
-
return
|
| 163 |
|
| 164 |
@spaces.GPU(duration=get_duration)
|
| 165 |
def generate_video(
|
|
|
|
| 159 |
frames = get_num_frames(duration_seconds)
|
| 160 |
factor = frames * width * height / BASE_FRAMES_HEIGHT_WIDTH
|
| 161 |
step_duration = BASE_STEP_DURATION * factor ** 1.5
|
| 162 |
+
return 5 + int(steps) * step_duration
|
| 163 |
|
| 164 |
@spaces.GPU(duration=get_duration)
|
| 165 |
def generate_video(
|