How to display user and assistant chat on opposite sides when streaming like a conversation

I don’t recommend trying to use the st-emotion classes whenever possible and instead focus on classes and data-ids that have friendlier names without hashes.

From Streamlit 1.40.2, here’s some better classes or data-ids to grab from:

1 Like