Right now math formulas show up like this in the chat area
It would be nice to render them as latex. Streamlit already provides a simple way to do this using st.latex but since we render the answers from the model using streaming it's difficult to realize when we have a latex formula.
We need a way to detect a latex formula is being written and wait for it to finish before rendering it with st.latex.
Right now math formulas show up like this in the chat area
It would be nice to render them as latex. Streamlit already provides a simple way to do this using st.latex but since we render the answers from the model using streaming it's difficult to realize when we have a latex formula.
We need a way to detect a latex formula is being written and wait for it to finish before rendering it with st.latex.