ysharma HF staff commited on
Commit
55feab6
1 Parent(s): 6df360e
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,7 +4,8 @@ from IPython.display import YouTubeVideo
4
 
5
  def display_vid(video):
6
  #https://www.youtube.com/watch?v=smUHQndcmOY&t=425s
7
- html = HTML("<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>")
 
8
  vid = YouTubeVideo('smUHQndcmOY&t=425s')
9
  return html
10
 
@@ -29,7 +30,7 @@ with demo:
29
  b1 = gr.Button("Publish Video")
30
  #b2 = gr.Button("Generate Image")
31
 
32
- b1.click(fun, input_url, output_vid)
33
  #b2.click(poem_to_image, poem_txt, output_image)
34
  #examples=examples
35
 
 
4
 
5
  def display_vid(video):
6
  #https://www.youtube.com/watch?v=smUHQndcmOY&t=425s
7
+ #html = HTML("<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>")
8
+ html = "<iframe width='560' height='315' src='https://www.youtube.com/watch?v=smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>"
9
  vid = YouTubeVideo('smUHQndcmOY&t=425s')
10
  return html
11
 
 
30
  b1 = gr.Button("Publish Video")
31
  #b2 = gr.Button("Generate Image")
32
 
33
+ b1.click(display_vid, input_url, output_vid)
34
  #b2.click(poem_to_image, poem_txt, output_image)
35
  #examples=examples
36