This commit is contained in:
Shaquille Soekhlal 2024-06-23 13:58:54 +00:00
parent 4b43b43b55
commit 86f8adb104

11
app.py
View File

@ -1,3 +1,12 @@
import streamlit as st import streamlit as st
st.write("Hello World") 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"])