Spaces:
Build error
Build error
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 |
-
|
|
|
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 |
|