def init_memory(): if "chat" not in st.session_state: st.session_state.chat = []