ysharma HF Staff commited on
Commit
bb1b3e8
·
1 Parent(s): ce9c7b3
Files changed (1) hide show
  1. app.py +1 -1
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(videopath)
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",)