ysharma HF staff commited on
Commit
6f49924
1 Parent(s): afe6e94
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,9 +1,12 @@
1
  import gradio as gr
2
  from IPython.display import HTML, IFrame
 
3
 
4
  def display_vid(video):
 
5
  html = HTML("<iframe width='560' height='315' src=video frameborder='0' allowfullscreen></iframe>")
6
- return html
 
7
 
8
  demo = gr.Blocks()
9
 
 
1
  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=video frameborder='0' allowfullscreen></iframe>")
8
+ vid = YouTubeVideo('smUHQndcmOY&t=425s')
9
+ return vid
10
 
11
  demo = gr.Blocks()
12