Hi vinzee,
I am not sure there is a beautiful solution to this, but you can disable the ‘original Running fetch_measures(…)’ by adding the show_spinner=False option on the cache decorator.
@st.cache(show_spinner=False)
def fetch_measures(x,y,z):
#do stuff
and then you can use your solution using with st.spinner(text="Fetching measures")