How to show the percentage number in st.progress bar?

Hi @BeyondMyself ,
To display the value above the progress like the images bellow, you simply set a variable with st.empty() outside of your loop and assign the value of the progress bar inside your loop so that it gets updated as the bar progresses, like the following:

import streamlit as st
import time

latest_iteration = st.empty()
bar = st.progress(0)
num = 20
for i in range(num):
    latest_iteration.text(f'{num - i} seconds left')
    bar.progress((100//num)*i)
    time.sleep(1)

Let us know if this helped you solve your problem !