Spaces:
Build error
Build error
app.py
CHANGED
@@ -160,7 +160,7 @@ def get_gif_timestamps(giflist_indxs, words_timestamp):
|
|
160 |
#extracting the video and building and serving a .gif image
|
161 |
def gen_moviepy_gif(start_seconds, end_seconds):
|
162 |
video_path = Path("./ShiaLaBeouf.mp4")
|
163 |
-
video = mp.VideoFileClip(
|
164 |
final_clip = video.subclip(start_seconds, end_seconds)
|
165 |
#final_clip.write_videofile("/content/gdrive/My Drive/AI/videoedit/gif1.mp4")
|
166 |
final_clip.write_gif("./gifimage.gif",)
|
|
|
160 |
#extracting the video and building and serving a .gif image
|
161 |
def gen_moviepy_gif(start_seconds, end_seconds):
|
162 |
video_path = Path("./ShiaLaBeouf.mp4")
|
163 |
+
video = mp.VideoFileClip(video_path)
|
164 |
final_clip = video.subclip(start_seconds, end_seconds)
|
165 |
#final_clip.write_videofile("/content/gdrive/My Drive/AI/videoedit/gif1.mp4")
|
166 |
final_clip.write_gif("./gifimage.gif",)
|