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