Update src/chat_display.py
Browse files- src/chat_display.py +3 -4
src/chat_display.py
CHANGED
|
@@ -136,11 +136,10 @@ def display_chat_history():
|
|
| 136 |
cleaned_response = remove_reasoning_and_sources(message["content"])
|
| 137 |
st.markdown(cleaned_response)
|
| 138 |
|
| 139 |
-
#
|
| 140 |
-
follow_up_questions
|
| 141 |
-
if follow_up_questions:
|
| 142 |
with st.expander("Additional Questions"):
|
| 143 |
-
st.markdown(follow_up_questions)
|
| 144 |
|
| 145 |
# Only display the explanation in an expander if it exists AND has actual content
|
| 146 |
if message.get("explanation") and has_meaningful_content(message.get("explanation")):
|
|
|
|
| 136 |
cleaned_response = remove_reasoning_and_sources(message["content"])
|
| 137 |
st.markdown(cleaned_response)
|
| 138 |
|
| 139 |
+
# Use follow-up questions from the message object directly
|
| 140 |
+
if message.get("follow_up_questions") and message["follow_up_questions"].strip():
|
|
|
|
| 141 |
with st.expander("Additional Questions"):
|
| 142 |
+
st.markdown(message["follow_up_questions"])
|
| 143 |
|
| 144 |
# Only display the explanation in an expander if it exists AND has actual content
|
| 145 |
if message.get("explanation") and has_meaningful_content(message.get("explanation")):
|