Dhruv-Ty commited on
Commit
2efd965
·
verified ·
1 Parent(s): e5c3d7b

Update src/chat_display.py

Browse files
Files changed (1) hide show
  1. src/chat_display.py +2 -2
src/chat_display.py CHANGED
@@ -112,8 +112,8 @@ def display_chat_history():
112
  """
113
  user_avatar, assistant_avatar = get_avatars()
114
 
115
- # Get full history from database
116
- history = get_full_history()
117
 
118
  # Display all messages instead of limiting to a fixed number
119
  display_history = history
 
112
  """
113
  user_avatar, assistant_avatar = get_avatars()
114
 
115
+ # Get history directly from session state (local cache)
116
+ history = st.session_state.get('history', [])
117
 
118
  # Display all messages instead of limiting to a fixed number
119
  display_history = history