jbilcke-hf HF Staff commited on
Commit
71acc60
·
verified ·
1 Parent(s): 71a939f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=FIXED_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: