multimodalart HF Staff commited on
Commit
9e90928
·
verified ·
1 Parent(s): 5e08962

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ def generate_video(input_image, prompt, height, width,
115
  target_h = max(MOD_VALUE, (int(height) // MOD_VALUE) * MOD_VALUE)
116
  target_w = max(MOD_VALUE, (int(width) // MOD_VALUE) * MOD_VALUE)
117
 
118
- num_frames = np.clip(int(round(duration_seconds * FIXED_FPS)), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
119
 
120
  current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
121
 
 
115
  target_h = max(MOD_VALUE, (int(height) // MOD_VALUE) * MOD_VALUE)
116
  target_w = max(MOD_VALUE, (int(width) // MOD_VALUE) * MOD_VALUE)
117
 
118
+ num_frames = int(np.clip(int(round(duration_seconds * FIXED_FPS)), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL))
119
 
120
  current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
121