Aniq-63 commited on
Commit
ad2c085
·
verified ·
1 Parent(s): 30f39d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -293,6 +293,16 @@ def main():
293
  # Chat Interface
294
  st.header(f"Welcome to {company_name}, {st.session_state.user.username} 😊!")
295
  st.subheader("Chat with our AI Sales Assistant")
 
 
 
 
 
 
 
 
 
 
296
 
297
  # System Prompt
298
  company_settings = Company.get_settings()
 
293
  # Chat Interface
294
  st.header(f"Welcome to {company_name}, {st.session_state.user.username} 😊!")
295
  st.subheader("Chat with our AI Sales Assistant")
296
+
297
+ # Display Chat History
298
+ for msg in st.session_state.chat_history:
299
+ if msg["type"] == "human":
300
+ with st.chat_message("user"):
301
+ st.write(msg["content"])
302
+ else:
303
+ with st.chat_message("assistant"):
304
+ st.write(msg["content"])
305
+
306
 
307
  # System Prompt
308
  company_settings = Company.get_settings()