Refresh screen?


any idea how to reset the screen, so the images are not stacking up ?
I explain: when I put


and then another

then the pictures are stacking up, thus making the screen scroll, full of pictures

I would like to refresh only the one image only, always with new picture, basically pasting new pictures to same area (not piling them up). Any idea how please ?

I didnt find any “refresh” or “reset” command in API…

1 Like

Hi @Bitterman

I believe you could use st.empty() for that

for example something along the lines of

image_holder = st.empty()
for item in images: