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