Why st.progress text doesn't appear?

Why progress_title doesn’t apprear in scream?
Steamlit version is 1.18.1

import streamlit as st
import time

st.title("st.progress")

with st.expander("About this app"):
    st.write('You can now display the progress of your calculations in a Streamlit app with the `st.progress` command.')

progress_title = "Progress"
my_bar = st.progress(0, text=progress_title)

for percent_comprete in range(100):
    time.sleep(0.05)
    my_bar.progress(percent_comprete +1)
    
st.balloons()

Hi @ghhikari-i, and welcome to our forums! :raised_hands:

It is working for me with this code:

import streamlit as st
import time

st.title("st.progress")

with st.expander("About this app"):
    st.write('You can now display the progress of your calculations in a Streamlit app with the `st.progress` command.')

progress_title = "Progress"
my_bar = st.progress(0, text=progress_title)

for percent_comprete in range(100):
    time.sleep(0.05)
    my_bar.progress(percent_comprete +1)
    
st.balloons()

Recording 2023-07-30 at 10.37.03

Would you mind retrying pkease?

Thanks
Charly

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.