V7
Browse filesThings to fix:
- report continuous generation
- its updation before normal conversation.
- 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
|
115 |
-
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
|