Spaces:
Build error
Build error
app.py
CHANGED
@@ -163,7 +163,7 @@ def gen_moviepy_gif(start_seconds, end_seconds):
|
|
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("
|
167 |
final_clip.close()
|
168 |
return
|
169 |
|
@@ -204,6 +204,7 @@ with demo:
|
|
204 |
# return
|
205 |
with gr.Row():
|
206 |
out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
|
|
|
207 |
#out_gif_video = gr.Video(value='./gifimage.gif')
|
208 |
|
209 |
button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
|
|
|
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")
|
167 |
final_clip.close()
|
168 |
return
|
169 |
|
|
|
204 |
# return
|
205 |
with gr.Row():
|
206 |
out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
|
207 |
+
#gr.Markdown(""" [] """)
|
208 |
#out_gif_video = gr.Video(value='./gifimage.gif')
|
209 |
|
210 |
button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
|