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