mimbres commited on
Commit
fbea9d5
1 Parent(s): b83da2a

Update html_helper.py

Browse files
Files changed (1) hide show
  1. 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"""<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>"""
100
- return html
 
 
 
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