Spaces:
Build error
Build error
app.py
CHANGED
@@ -76,7 +76,7 @@ def generate_gifs(gif_transcript, words, words_timestamp):
|
|
76 |
#gif_img = f"./gifimage.gif"
|
77 |
#html_out = "<img src= '" + gif_img + "' alt='create a gif from video' width='100%'/>"
|
78 |
#print("html out is :", html_out)
|
79 |
-
return
|
80 |
|
81 |
|
82 |
#calling the hosted model
|
@@ -235,7 +235,7 @@ with demo:
|
|
235 |
with gr.Row():
|
236 |
#out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
|
237 |
#gr.Markdown(""" [] """)
|
238 |
-
out_gif = gr.
|
239 |
|
240 |
button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
|
241 |
button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
|
|
|
76 |
#gif_img = f"./gifimage.gif"
|
77 |
#html_out = "<img src= '" + gif_img + "' alt='create a gif from video' width='100%'/>"
|
78 |
#print("html out is :", html_out)
|
79 |
+
return gif_vid
|
80 |
|
81 |
|
82 |
#calling the hosted model
|
|
|
235 |
with gr.Row():
|
236 |
#out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
|
237 |
#gr.Markdown(""" [] """)
|
238 |
+
out_gif = gr.Video()
|
239 |
|
240 |
button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
|
241 |
button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
|