ysharma HF staff commited on
Commit
afe6e94
1 Parent(s): 53e45fe
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
 
2
 
3
  def display_vid(video):
4
- html = "<iframe width='560' height='315' src=video frameborder='0' allowfullscreen></iframe>"
5
  return html
6
 
7
  demo = gr.Blocks()
 
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()