ysharma HF staff commited on
Commit
4b8afb6
1 Parent(s): 90c27c6
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,7 +73,7 @@ def generate_gifs(gif_transcript, words, words_timestamp):
73
  #("./gifimage.gif")
74
  html_out = "<img src=" + gif_img + " alt='create a gif from video' width='100%'/>"
75
 
76
- return html_out
77
 
78
 
79
  #calling the hosted model
@@ -204,9 +204,9 @@ with demo:
204
  # print(f"html output is : {html_out}")
205
  # return
206
  with gr.Row():
207
- out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
208
  #gr.Markdown(""" [] """)
209
- #out_gif_video = gr.Video(value='./gifimage.gif')
210
 
211
  button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
212
  button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
 
73
  #("./gifimage.gif")
74
  html_out = "<img src=" + gif_img + " alt='create a gif from video' width='100%'/>"
75
 
76
+ return gif_img
77
 
78
 
79
  #calling the hosted model
 
204
  # print(f"html output is : {html_out}")
205
  # return
206
  with gr.Row():
207
+ #out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
208
  #gr.Markdown(""" [] """)
209
+ out_gif = gr.Video()
210
 
211
  button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
212
  button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )