79176591

Date: 2024-11-11 06:34:16
Score: 1
Natty:
Report link

This is because show_spinner=False will only work if you are using st.spinner() and not st.status().

You can recreate the same thing with a spinner as follows:

@st.cache_data(show_spinner=False)
def fetch_data():
    with st.spinner("Buscando datos..."):
        time.sleep(2)
        st.write("Partidos encontrados...")
        time.sleep(2)
        st.write("Descargando datos...")
        time.sleep(2)
        st.write("Dibujando tabla...")
        game_data = scraper.get_data(game_list_input=games_id)
        data_df = scraper.get_data_df(data_list=game_data)
        games_data = data_df.to_pandas()
        time.sleep(3)
        st.success("¡Descarga completada!")        
        return games_data

    
games_data = fetch_data()

You can tweak it a little to add an expander like we have in status, if required.

Reasons:
  • RegEx Blacklisted phrase (2): encontrados
  • Long answer (-0.5):
  • Has code block (-0.5):
Posted by: Vikas Sharma