Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,7 @@ else:
|
|
57 |
MAX_SEED = np.iinfo(np.int32).max
|
58 |
|
59 |
FIXED_FPS = 24
|
|
|
60 |
MIN_FRAMES_MODEL = 8
|
61 |
MAX_FRAMES_MODEL = 81
|
62 |
|
@@ -147,7 +148,7 @@ def generate_video(prompt, height, width,
|
|
147 |
|
148 |
with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmpfile:
|
149 |
video_path = tmpfile.name
|
150 |
-
export_to_video(output_frames_list, video_path, fps=
|
151 |
return video_path, current_seed
|
152 |
|
153 |
with gr.Blocks() as demo:
|
|
|
57 |
MAX_SEED = np.iinfo(np.int32).max
|
58 |
|
59 |
FIXED_FPS = 24
|
60 |
+
FIXED_OUTPUT_FPS = 18 # we downspeed the output video as a temporary "trick"
|
61 |
MIN_FRAMES_MODEL = 8
|
62 |
MAX_FRAMES_MODEL = 81
|
63 |
|
|
|
148 |
|
149 |
with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tmpfile:
|
150 |
video_path = tmpfile.name
|
151 |
+
export_to_video(output_frames_list, video_path, fps=FIXED_OUTPUT_FPS)
|
152 |
return video_path, current_seed
|
153 |
|
154 |
with gr.Blocks() as demo:
|