I use st_autorefresh for refreshing my app every 30 sec with a limit of 100 times as explained in the repository. It works nicely when the app is launched locally, however, when the app is deployed in streamlit it breaks and gives the following error:
The problem is directly with importing the library. After deleting the st_autorefresh related code, the app perfectly deploys on streamlit.io
from streamlit_autorefresh import st_autorefreshst_autorefresh(interval= 1 * 30 * 1000, key="app_refresh")
I use
st_autorefresh
for refreshing my app every 30 sec with a limit of 100 times as explained in the repository. It works nicely when the app is launched locally, however, when the app is deployed in streamlit it breaks and gives the following error:The problem is directly with importing the library. After deleting the
st_autorefresh
related code, the app perfectly deploys on streamlit.iofrom streamlit_autorefresh import st_autorefresh
st_autorefresh(interval= 1 * 30 * 1000, key="app_refresh")