Streamlit is a magical frontend for data science and machine learning. Here is an example of how to use it:
Install with:
pip install streamlit
Copy and paste this example and it should work:
import streamlit as st
import numpy as np
import time
st.title('Streamlit Example')
st.write('Hello, World!')
st.write(np.random.randn(200, 200))
st.subheader('A Progress Bar')
bar = st.progress(0)
for i in range(100):
bar.progress(i + 1)
time.sleep(0.1)
For more help and a complete API documentation, please run:
streamlit help