Spaces:
Build error
Build error
app.py
CHANGED
@@ -73,10 +73,10 @@ def generate_gifs(gif_transcript, words, words_timestamp):
|
|
73 |
#generated .gif image
|
74 |
gen_moviepy_gif(start_seconds, end_seconds)
|
75 |
#gif_img = gen_moviepy_gif(start_seconds, end_seconds)
|
76 |
-
|
77 |
html_out = "<img src=" + gif_img + " alt='create a gif from video' width='100%'/>"
|
78 |
|
79 |
-
return
|
80 |
|
81 |
|
82 |
#calling the hosted model
|
@@ -211,9 +211,9 @@ with demo:
|
|
211 |
# print(f"html output is : {html_out}")
|
212 |
# return
|
213 |
with gr.Row():
|
214 |
-
|
215 |
#gr.Markdown(""" [] """)
|
216 |
-
out_gif = gr.Video()
|
217 |
|
218 |
button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
|
219 |
button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
|
|
|
73 |
#generated .gif image
|
74 |
gen_moviepy_gif(start_seconds, end_seconds)
|
75 |
#gif_img = gen_moviepy_gif(start_seconds, end_seconds)
|
76 |
+
gif_img = r"./gifimage.gif"
|
77 |
html_out = "<img src=" + gif_img + " alt='create a gif from video' width='100%'/>"
|
78 |
|
79 |
+
return html_out
|
80 |
|
81 |
|
82 |
#calling the hosted model
|
|
|
211 |
# print(f"html output is : {html_out}")
|
212 |
# return
|
213 |
with gr.Row():
|
214 |
+
out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
|
215 |
#gr.Markdown(""" [] """)
|
216 |
+
#out_gif = gr.Video()
|
217 |
|
218 |
button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
|
219 |
button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
|