Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ def run_inference(prompt, video_path, condition, video_length, seed, steps):
|
|
142 |
target_fps = get_video_dimension(video_path)[2]
|
143 |
if target_fps > 12 :
|
144 |
print(f"FPS is too high")
|
145 |
-
video_length = (12 * video_length) / target_fps
|
146 |
target_fps = 12
|
147 |
print(f"INPUT FPS: {target_fps}")
|
148 |
|
|
|
142 |
target_fps = get_video_dimension(video_path)[2]
|
143 |
if target_fps > 12 :
|
144 |
print(f"FPS is too high")
|
145 |
+
video_length = int((12 * video_length) / target_fps)
|
146 |
target_fps = 12
|
147 |
print(f"INPUT FPS: {target_fps}")
|
148 |
|