Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,10 +28,11 @@ if "messages" not in st.session_state:
|
|
| 28 |
st.session_state.messages = []
|
| 29 |
|
| 30 |
# Display the chat history
|
| 31 |
-
|
| 32 |
"<h1 style='text-align: center;'><b> Chatgpt <b/>.</h1>",
|
| 33 |
unsafe_allow_html=True
|
| 34 |
-
)
|
|
|
|
| 35 |
if isinstance(msg, HumanMessage):
|
| 36 |
st.write(f"**You:** {msg.content}")
|
| 37 |
elif isinstance(msg, AIMessage):
|
|
|
|
| 28 |
st.session_state.messages = []
|
| 29 |
|
| 30 |
# Display the chat history
|
| 31 |
+
st.markdown(
|
| 32 |
"<h1 style='text-align: center;'><b> Chatgpt <b/>.</h1>",
|
| 33 |
unsafe_allow_html=True
|
| 34 |
+
)
|
| 35 |
+
for msg in st.session_state.messages:
|
| 36 |
if isinstance(msg, HumanMessage):
|
| 37 |
st.write(f"**You:** {msg.content}")
|
| 38 |
elif isinstance(msg, AIMessage):
|