fffiloni commited on
Commit
fe1dcee
1 Parent(s): 43af4fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -112,9 +112,11 @@ def normalize_and_save_video(input_video_path, output_video_path):
112
 
113
 
114
  def run_inference(prompt, video_path, condition, video_length, seed):
115
-
 
 
116
  # Get FPS of original video input
117
- target_fps = math.floor(get_video_dimension(video_path)[2])
118
  if target_fps > 12 :
119
  print(f"FPS is too high")
120
  target_fps = 12
 
112
 
113
 
114
  def run_inference(prompt, video_path, condition, video_length, seed):
115
+
116
+ seed = math.floor(seed)
117
+
118
  # Get FPS of original video input
119
+ target_fps = get_video_dimension(video_path)[2]
120
  if target_fps > 12 :
121
  print(f"FPS is too high")
122
  target_fps = 12