fffiloni commited on
Commit
b440bd5
1 Parent(s): eadc7f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -154,7 +154,8 @@ def run_inference(prompt, video_path, condition, video_length, seed):
154
  print(f"RESIZED VIDEO FRAME COUNT: {resized_video_fcount}")
155
 
156
  # Make sure new total frame count is enough to handle chosen video length
157
- # if video_length > resized_video_fcount :
 
158
  # video_length = int((target_fps * video_length) / original_fps)
159
 
160
  output_path = 'output/'
 
154
  print(f"RESIZED VIDEO FRAME COUNT: {resized_video_fcount}")
155
 
156
  # Make sure new total frame count is enough to handle chosen video length
157
+ if video_length > resized_video_fcount :
158
+ video_length = resized_video_fcount
159
  # video_length = int((target_fps * video_length) / original_fps)
160
 
161
  output_path = 'output/'