ysharma HF staff commited on
Commit
ad00b6f
1 Parent(s): 47687a9
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,11 +2,11 @@ import gradio as gr
2
  from IPython.display import HTML, IFrame
3
  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
- html = "<iframe width='560' height='315' src='https://www.youtube.com/embed/smUHQndcmOY' frameborder='0' allowfullscreen></iframe>"
9
- vid = YouTubeVideo('smUHQndcmOY&t=425s')
10
  return html
11
  #https://youtu.be/smUHQndcmOY
12
  def fun(url):
 
2
  from IPython.display import HTML, IFrame
3
  from IPython.display import YouTubeVideo
4
 
5
+ def display_vid(url):
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' frameborder='0' allowfullscreen></iframe>"
9
+ #vid = YouTubeVideo('smUHQndcmOY&t=425s')
10
  return html
11
  #https://youtu.be/smUHQndcmOY
12
  def fun(url):