Spaces:
Paused
Paused
Update web-demos/hugging_face/app.py
Browse files
web-demos/hugging_face/app.py
CHANGED
@@ -354,7 +354,7 @@ def generate_video_from_frames(frames, output_path, fps=30, bitrate=None):
|
|
354 |
# Convert fps to a clean format
|
355 |
if isinstance(fps, np.generic):
|
356 |
fps = fps.item()
|
357 |
-
fps =
|
358 |
|
359 |
# Ensure all frames are the same shape
|
360 |
assert all(f.shape == frames[0].shape for f in frames), "All frames must have the same shape"
|
|
|
354 |
# Convert fps to a clean format
|
355 |
if isinstance(fps, np.generic):
|
356 |
fps = fps.item()
|
357 |
+
fps = float(fps)
|
358 |
|
359 |
# Ensure all frames are the same shape
|
360 |
assert all(f.shape == frames[0].shape for f in frames), "All frames must have the same shape"
|