ysharma HF staff commited on
Commit
209d5da
1 Parent(s): 2a93029
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -182,7 +182,7 @@ with demo:
182
  text_words = gr.Textbox(visible=False)
183
  text_wordstimestamps = gr.Textbox(visible=False)
184
  text_gif_transcript = gr.Textbox(label="Transcripts", placeholder="Copy paste transcripts here to create GIF image" , lines = 3, interactive = True ) #to copy paste required gif transcript
185
- out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
186
 
187
  examples.render()
188
  def load_examples(video): #to load sample video into input_video upon clicking on it
@@ -202,8 +202,11 @@ with demo:
202
  # html_out = "<img src='./gifimage.gif' />"
203
  # print(f"html output is : {html_out}")
204
  # return
205
-
 
 
206
  button_transcript.click(generate_transcripts, input_video, [text_transcript, text_words, text_wordstimestamps ])
207
  button_gifs.click(generate_gifs, [text_gif_transcript, text_words, text_wordstimestamps], out_gif )
208
 
 
209
  demo.launch(debug=True)
 
182
  text_words = gr.Textbox(visible=False)
183
  text_wordstimestamps = gr.Textbox(visible=False)
184
  text_gif_transcript = gr.Textbox(label="Transcripts", placeholder="Copy paste transcripts here to create GIF image" , lines = 3, interactive = True ) #to copy paste required gif transcript
185
+ #out_gif = gr.HTML(label="Generated GIF from transcript selected", show_label=True)
186
 
187
  examples.render()
188
  def load_examples(video): #to load sample video into input_video upon clicking on it
 
202
  # html_out = "<img src='./gifimage.gif' />"
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)