Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
def return_yt_html_embed(yt_url):
|
4 |
video_id = yt_url.split("?v=")[-1]
|
5 |
HTML_str = (
|
6 |
-
f'<center> <iframe width="500" height="320" src="https://www.youtube.com/embed/{video_id}"> </iframe>'
|
7 |
" </center>"
|
8 |
)
|
9 |
return HTML_str
|
|
|
3 |
def return_yt_html_embed(yt_url):
|
4 |
video_id = yt_url.split("?v=")[-1]
|
5 |
HTML_str = (
|
6 |
+
f'<center> <iframe allowfullscreen width="500" height="320" src="https://www.youtube.com/embed/{video_id}"> </iframe>'
|
7 |
" </center>"
|
8 |
)
|
9 |
return HTML_str
|