Auto update the streamlit app using st.empty and placeholder
I want my streamlit app to be automaticaly updated, with data being updated without the need to refresh the browser, I tried ` placeholder1 = st.empty()
with placeholder1:
Sensor1.metric(
label="Sensor 1 RH",
value=sensors_df3['Sensor 1'].iloc[-1]
)
Sensor2.metric(
label="Sensor 2 RH",
value=sensors_df3['Sensor 2'].iloc[-1]
)
Sensor3.metric(
label="Sensor 3 RH",
value=sensors_df3['Sensor 3'].iloc[-1]
)...