goryhon commited on
Commit
0b7600b
·
verified ·
1 Parent(s): a8cd62e

Update web-demos/hugging_face/app.py

Browse files
Files changed (1) hide show
  1. web-demos/hugging_face/app.py +1 -1
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 = Fraction(float(fps)).limit_denominator()
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"