diff --git a/app.py b/app.py index f2bbd16..22417e3 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,12 @@ import streamlit as st -st.write("Hello World") \ No newline at end of file +st.title("Echo Bot") + +# Initialize chat history +if "messages" not in st.session_state: + st.session_state.messages = [] + +# Display chat messages from history on app rerun +for message in st.session_state.messages: + with st.chat_message(message["role"]): + st.markdown(message["content"])