Refreshing the screen without stacking images(tables) in a while loop application

Hi @mg1795, welcome to the Streamlit community!

You need to define st.empty() outside of your function call, so that you can continue to write over that object.

Best,
Randy