fffiloni commited on
Commit
3a51f78
1 Parent(s): 4f5c30f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -153,7 +153,9 @@ def run_inference(prompt, video_path, condition, video_length, seed):
153
  if original_fps > 12 :
154
  print(f"FPS is too high: {original_fps}")
155
  target_fps = 12
156
- print(f"NEW INPUT FPS: {target_fps}, NEW LENGTH: {video_length}")
 
 
157
 
158
  # Check if the resized file already exists
159
  if os.path.exists('resized.mp4'):
 
153
  if original_fps > 12 :
154
  print(f"FPS is too high: {original_fps}")
155
  target_fps = 12
156
+ else :
157
+ target_fps = original_fps
158
+ print(f"NEW INPUT FPS: {target_fps}, NEW LENGTH: {video_length}")
159
 
160
  # Check if the resized file already exists
161
  if os.path.exists('resized.mp4'):