[Python] How to display text correctly with streamlit, I have a strange formatting happening

Discussão em 'Python' iniciado por Stack, Maio 14, 2025.

  1. Stack

    Stack Membro Participativo

    [​IMG]

    I'm on streamlit in my app but when I diplay some texts, here is what I get and I can't make it clean.

    I tried using st.markdown(response2,unsafe_allow_html=True) but also

    plain_text = markdown2.markdown(response2, extras=["no-html"])
    st.write(plain_text)


    Yet it still shows the same thing

    Continue reading...

Compartilhe esta Página