ysharma HF staff commited on
Commit
48af044
1 Parent(s): ac4b2bf
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -180,14 +180,15 @@ def gen_moviepy_gif(start_seconds, end_seconds):
180
  print("I am here now")
181
 
182
  #gifclip = VideoFileClip("gifimage.mp4")
183
- final_clip.write_gif("./gifimage.gif") #, program='ffmpeg', tempfiles=True, fps=15, fuzz=3)
184
 
185
  print("pretty good")
186
- gif_img = mp.VideoFileClip("./gifimage.gif")
187
  print(gif_img)
188
  #final_clip.close()
 
189
  print("At the very end")
190
- return gif_img
191
 
192
 
193
  # showing gif
 
180
  print("I am here now")
181
 
182
  #gifclip = VideoFileClip("gifimage.mp4")
183
+ final_clip.write_gif("gifimage.gif") #, program='ffmpeg', tempfiles=True, fps=15, fuzz=3)
184
 
185
  print("pretty good")
186
+ gif_img = mp.VideoFileClip("gifimage.gif")
187
  print(gif_img)
188
  #final_clip.close()
189
+ im = Image.open("gifimage.gif")
190
  print("At the very end")
191
+ return im
192
 
193
 
194
  # showing gif