Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def im_2_vid(images,fps):
|
|
62 |
print (width,height)
|
63 |
size = (width, height)
|
64 |
movie_clip = moviepy.video.io.ImageSequenceClip.ImageSequenceClip(images, fps)
|
65 |
-
movie_clip.write_videofile(
|
66 |
#codec = cv2.VideoWriter_fourcc(*'mp4v') #DIVX, DIVD
|
67 |
#video = cv2.VideoWriter("tmp_vid.mp4", codec, fps, size)
|
68 |
#for img in images:
|
|
|
62 |
print (width,height)
|
63 |
size = (width, height)
|
64 |
movie_clip = moviepy.video.io.ImageSequenceClip.ImageSequenceClip(images, fps)
|
65 |
+
movie_clip.write_videofile(f'{uid}-rembg/bg_removed-{uuid.uuid1()}.mp4')
|
66 |
#codec = cv2.VideoWriter_fourcc(*'mp4v') #DIVX, DIVD
|
67 |
#video = cv2.VideoWriter("tmp_vid.mp4", codec, fps, size)
|
68 |
#for img in images:
|