ebook-gen / components /chat_box.py
pragneshbarik's picture
moved chat loop into chat_loop() following major refactoring
5d2a014
raw
history blame contribute delete
196 Bytes
import streamlit as st
def chat_box(session_state, config):
for message in session_state.messages:
with st.chat_message(message["role"]):
st.markdown(message["content"])