Spaces:
Runtime error
Runtime error
Alican Akca
commited on
Commit
·
59a0741
1
Parent(s):
9f9a50c
GIF and Video Processing
Browse files- methods/media.py +1 -1
methods/media.py
CHANGED
@@ -25,7 +25,7 @@ class Media:
|
|
25 |
frames = pixL().toThePixL(frames, pixel_size)
|
26 |
if mediaType == 'gif':
|
27 |
imageio.mimsave('cache.gif', frames)
|
28 |
-
return ['cache.gif',
|
29 |
else:
|
30 |
output_file = "cache.mp4"
|
31 |
out = cv2.VideoWriter(output_file,cv2.VideoWriter_fourcc(*'h264'), 15, (frames[0].shape[1],frames[0].shape[0]))
|
|
|
25 |
frames = pixL().toThePixL(frames, pixel_size)
|
26 |
if mediaType == 'gif':
|
27 |
imageio.mimsave('cache.gif', frames)
|
28 |
+
return [None, 'cache.gif', 'cache.gif']
|
29 |
else:
|
30 |
output_file = "cache.mp4"
|
31 |
out = cv2.VideoWriter(output_file,cv2.VideoWriter_fourcc(*'h264'), 15, (frames[0].shape[1],frames[0].shape[0]))
|