Chatbot app with images in chat

I want to create an app where the chatbot can output images which are displayed in the chat thread. Is this possible?

Hi @robmarkcole,

Thanks for posting!

Do you have example code to share? You can insert any element into the chat expander like so:

import streamlit as st

with st.chat_message("user"):
    st.write("Hello πŸ‘‹")
    st.image('sunrise.jpg', caption='Sunrise by the mountains')