ysharma HF staff commited on
Commit
c846c6f
1 Parent(s): cb3d639
Files changed (1) hide show
  1. app.py +18 -6
app.py CHANGED
@@ -202,7 +202,25 @@ with demo:
202
  return text
203
 
204
  text_transcript.change(load_gif_text, text_transcript, text_gif_transcript )
 
 
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  #to render video example on mouse hover/click
207
  examples.render()
208
  #to load sample video into input_video upon clicking on it
@@ -213,12 +231,6 @@ with demo:
213
 
214
  examples.click(load_examples, examples, input_video)
215
 
216
- with gr.Row():
217
- button_transcript = gr.Button("Generate transcripts")
218
- button_gifs = gr.Button("Create Gif")
219
-
220
- with gr.Row():
221
- out_gif = gr.Image()
222
 
223
  button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
224
  button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
 
202
  return text
203
 
204
  text_transcript.change(load_gif_text, text_transcript, text_gif_transcript )
205
+
206
+ out_gif = gr.Image()
207
 
208
+ #to render video example on mouse hover/click
209
+ #examples.render()
210
+ #to load sample video into input_video upon clicking on it
211
+ #def load_examples(video):
212
+ # print("****** inside load_example() ******")
213
+ # print("in_video is : ", video[0])
214
+ # return video[0]
215
+
216
+ #examples.click(load_examples, examples, input_video)
217
+
218
+ with gr.Row():
219
+ button_transcript = gr.Button("Generate transcripts")
220
+ button_gifs = gr.Button("Create Gif")
221
+
222
+ with gr.Row():
223
+ #out_gif = gr.Image()
224
  #to render video example on mouse hover/click
225
  examples.render()
226
  #to load sample video into input_video upon clicking on it
 
231
 
232
  examples.click(load_examples, examples, input_video)
233
 
 
 
 
 
 
 
234
 
235
  button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
236
  button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )