Answers for "streamlit warining "Running" "cache""

0

streamlit warining "Running" "cache"

@st.cache(show_spinner=False)
def fetch_measures():
    # do stuff
    time.sleep(10)


def main():
    with st.spinner(text="Fetching measures"):
        measures = fetch_measures()

if __name__ == "__main__":
    main()
Posted by: Guest on October-25-2021

Code answers related to "streamlit warining "Running" "cache""

Browse Popular Code Answers by Language