langchain/callbacks/streamlit.py/StreamlitCallbackHandler/on_text
class StreamlitCallbackHandler:    def on_text(self, text: str, **kwargs: Any) -> None:
        """Run on text."""
        # st.write requires two spaces before a newline to render it
        st.write(text.replace("\n", "  \n"))