bar_chart_race / app.py
tykimos's picture
Update app.py
0ae8cc8
raw
history blame contribute delete
328 Bytes
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)
start = html_str.find('base64,')+len('base64,')
end = html_str.find('">')
video = base64.b64decode(html_str[start:end])
st.video(video)