Update app.py
Browse files
app.py
CHANGED
|
@@ -93,6 +93,8 @@ with st.sidebar:
|
|
| 93 |
else:
|
| 94 |
st.write("No past sessions available.")
|
| 95 |
|
|
|
|
|
|
|
| 96 |
# -------------------------
|
| 97 |
# Chat History Initialization
|
| 98 |
# -------------------------
|
|
@@ -185,3 +187,9 @@ if prompt:
|
|
| 185 |
st.session_state["messages"].append({"role": "assistant", "content": msg})
|
| 186 |
# 5) Persist updated chat history
|
| 187 |
save_chat_history(st.session_state["session_name"], st.session_state["messages"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
else:
|
| 94 |
st.write("No past sessions available.")
|
| 95 |
|
| 96 |
+
|
| 97 |
+
|
| 98 |
# -------------------------
|
| 99 |
# Chat History Initialization
|
| 100 |
# -------------------------
|
|
|
|
| 187 |
st.session_state["messages"].append({"role": "assistant", "content": msg})
|
| 188 |
# 5) Persist updated chat history
|
| 189 |
save_chat_history(st.session_state["session_name"], st.session_state["messages"])
|
| 190 |
+
|
| 191 |
+
# Display the chat history string being sent to the LLM
|
| 192 |
+
with st.sidebar:
|
| 193 |
+
st.write("### Input Sent to LLM")
|
| 194 |
+
st.text_area("Chat History for LLM", chat_history, height=300)
|
| 195 |
+
|