Spaces:
Runtime error
Runtime error
File size: 333 Bytes
c7f4c7b |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import streamlit as st
import streamlit.components.v1 as components
import bar_chart_race as bcr
import base64
df = bcr.load_dataset("covid19_tutorial")
html_str = bcr.bar_chart_race(df=df).data
start = html_str.find('base64,')+len('base64,')
end = html_str.find('">')
video = base64.b64decode(html_str[start:end])
st.video(video) |