Wajahat698 commited on
Commit
1d956fc
·
verified ·
1 Parent(s): c83867d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- st.markdown(
32
  "<h1 style='text-align: center;'><b> Chatgpt <b/>.</h1>",
33
  unsafe_allow_html=True
34
- )for msg in st.session_state.messages:
 
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):