Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -4643,9 +4643,7 @@ with tab_chat:
|
|
| 4643 |
|
| 4644 |
# Ensure transcript has latest turn appended (once per turn)
|
| 4645 |
_out = st.session_state.get('last_chat_out')
|
| 4646 |
-
_last_user = st.session_state.get(
|
| 4647 |
-
_out = st.session_state.get('last_chat_out')
|
| 4648 |
-
_last_user = st.session_state.get('last_user_text')
|
| 4649 |
if _out is not None and _last_user:
|
| 4650 |
_t = st.session_state.setdefault('transcript', [])
|
| 4651 |
if (not _t) or (_t[-1].get('user') != _last_user):
|
|
|
|
| 4643 |
|
| 4644 |
# Ensure transcript has latest turn appended (once per turn)
|
| 4645 |
_out = st.session_state.get('last_chat_out')
|
| 4646 |
+
_last_user = st.session_state.get("last_user_text") or st.session_state.get("last_query_text")
|
|
|
|
|
|
|
| 4647 |
if _out is not None and _last_user:
|
| 4648 |
_t = st.session_state.setdefault('transcript', [])
|
| 4649 |
if (not _t) or (_t[-1].get('user') != _last_user):
|