Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -33,5 +33,5 @@ def sample_frames_from_video_file(file_path: str, num_frames: int = 16):
|
|
33 |
|
34 |
def convert_frames_to_gif(frames):
|
35 |
converted_frames = frames.astype(np.uint8)
|
36 |
-
imageio.mimsave(
|
37 |
return "frames.gif"
|
|
|
33 |
|
34 |
def convert_frames_to_gif(frames):
|
35 |
converted_frames = frames.astype(np.uint8)
|
36 |
+
imageio.mimsave(save_path, converted_frames, duration=125) # 8fps
|
37 |
return "frames.gif"
|