st.progress - Streamlit Docs
Show API reference for

Display a progress bar.

Examples

Here is an example of a progress bar increasing over time and disappearing when it reaches completion:

import streamlit as st
import time

progress_text = "Operation in progress. Please wait."
my_bar = st.progress(0, text=progress_text)

for percent_complete in range(100):
    time.sleep(0.01)
    my_bar.progress(percent_complete + 1, text=progress_text)
time.sleep(1)
my_bar.empty()

st.button("Rerun")
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.