Display a progress bar.
Function signature

st.progress(value)

Parameters

value (int or float)

0 <= value <= 100 for int

0.0 <= value <= 1.0 for float

Example

Here is an example of a progress bar increasing over time:

import time

my_bar = st.progress(0)

for percent_complete in range(100):
     time.sleep(0.1)
     my_bar.progress(percent_complete + 1)

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.