Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
|
| 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/'
|