St.spinner() gives a shadow of previous chat output


Hi
I have an issue on streamlit chatbot
while using st.spinner() the shadow of previous output also shows up

2 Likes

I have the same problem, is it fixed ?

I also face same issue, and have no idea.

Just found a solution to this from the issue page on github.

Make an empty element before the spinner. Then just do your spinner as normal (using st.spinner). And then write your content of your message in the empty element.

Other option is to currently downgrade to streamlit 1.32 apparently.