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