Hi All,
I have been trying to build a chatbot app on streamlit which uses autogen in the backend. The issue is, whenever I try to run the app through docker, with each new user message my entire app gets reloaded and I lose previous messages from the screen. Does anyone know how to fix it?
Make sure you are using StreamLit state variables instead of traditional python variables which gets reset everytime app is rendered.
# Initialize the state
if 'messages' not in st.session_state:
st.session_state.messages = [
{'role': 'assistant', 'content': 'Hello human' ]