ysharma HF staff commited on
Commit
1e93cdf
1 Parent(s): f83c478
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ from IPython.display import YouTubeVideo
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/embed/smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>"
9
  vid = YouTubeVideo('smUHQndcmOY&t=425s')
10
- return vid
11
 
12
  def fun(url):
13
  return gr.Video(value=url)
 
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/embed/smUHQndcmOY&t=425s' frameborder='0' allowfullscreen></iframe>
9
  vid = YouTubeVideo('smUHQndcmOY&t=425s')
10
+ return html
11
 
12
  def fun(url):
13
  return gr.Video(value=url)