📜  streamlit 警告“正在运行”“缓存” - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:07.084000             🧑  作者: Mango

代码示例1
@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()