Spaces:
Build error
Build error
app.py
CHANGED
@@ -166,10 +166,10 @@ def gen_moviepy_gif(start_seconds, end_seconds):
|
|
166 |
video = mp.VideoFileClip(video_path)
|
167 |
final_clip = video.subclip(start_seconds, end_seconds)
|
168 |
#final_clip.write_videofile("/content/gdrive/My Drive/AI/videoedit/gif1.mp4")
|
169 |
-
final_clip.write_gif(r"./gifimage.gif", fps=15)
|
170 |
print("I am here now")
|
171 |
#im = Image.open(r"./gifimage.gif")
|
172 |
-
gif_img = mp.VideoFileClip(
|
173 |
#final_clip.close()
|
174 |
print("At the very end")
|
175 |
return im
|
|
|
166 |
video = mp.VideoFileClip(video_path)
|
167 |
final_clip = video.subclip(start_seconds, end_seconds)
|
168 |
#final_clip.write_videofile("/content/gdrive/My Drive/AI/videoedit/gif1.mp4")
|
169 |
+
final_clip.write_gif(r"./gifimage.gif", fps=15, fuzz=3)
|
170 |
print("I am here now")
|
171 |
#im = Image.open(r"./gifimage.gif")
|
172 |
+
gif_img = mp.VideoFileClip("./gifimage.gif")
|
173 |
#final_clip.close()
|
174 |
print("At the very end")
|
175 |
return im
|