Dhruv-Ty commited on
Commit
88b24b5
·
verified ·
1 Parent(s): 301fa31

Things to fix:
- report continuous generation
- its updation before normal conversation.

Files changed (1) hide show
  1. src/chat_display.py +3 -2
src/chat_display.py CHANGED
@@ -6,6 +6,7 @@ import streamlit as st
6
  import os
7
  import re
8
  from utils import has_meaningful_content, remove_reasoning_and_sources, clean_explanation, get_image_base64
 
9
 
10
 
11
  def get_avatars():
@@ -111,8 +112,8 @@ def display_chat_history():
111
  """
112
  user_avatar, assistant_avatar = get_avatars()
113
 
114
- # Get history directly from session state (local cache)
115
- history = st.session_state.get('history', [])
116
 
117
  # Display all messages instead of limiting to a fixed number
118
  display_history = history
 
6
  import os
7
  import re
8
  from utils import has_meaningful_content, remove_reasoning_and_sources, clean_explanation, get_image_base64
9
+ from session_state import get_full_history
10
 
11
 
12
  def get_avatars():
 
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