Spaces:
Sleeping
Sleeping
Update html_helper.py
Browse files- html_helper.py +4 -2
html_helper.py
CHANGED
@@ -96,5 +96,7 @@ def create_html_from_midi(midifile):
|
|
96 |
|
97 |
def create_html_youtube_player(youtube_url):
|
98 |
youtube_url = to_youtube_embed_url(youtube_url)
|
99 |
-
html = f"""<
|
100 |
-
|
|
|
|
|
|
96 |
|
97 |
def create_html_youtube_player(youtube_url):
|
98 |
youtube_url = to_youtube_embed_url(youtube_url)
|
99 |
+
html = f"""<div style="display: flex; justify-content: center; align-items: center;">
|
100 |
+
<iframe width="560" height="315" src='{youtube_url}' title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
101 |
+
</div>"""
|
102 |
+
return html
|