Spaces:
Sleeping
Sleeping
Update src/chat.py
Browse files- src/chat.py +2 -2
src/chat.py
CHANGED
|
@@ -649,7 +649,7 @@ def render_chat_tab(conn):
|
|
| 649 |
# 4) add entry to session history
|
| 650 |
entry = {
|
| 651 |
"timestamp": current_time,
|
| 652 |
-
"user":
|
| 653 |
"intent": intent,
|
| 654 |
"sentiment": sentiment,
|
| 655 |
"resolution": resolution,
|
|
@@ -668,7 +668,7 @@ def render_chat_tab(conn):
|
|
| 668 |
save_chat_to_db(
|
| 669 |
conn,
|
| 670 |
user_id=uid,
|
| 671 |
-
user_message=
|
| 672 |
bot_reply=display_reply,
|
| 673 |
intent=intent,
|
| 674 |
sentiment=sentiment,
|
|
|
|
| 649 |
# 4) add entry to session history
|
| 650 |
entry = {
|
| 651 |
"timestamp": current_time,
|
| 652 |
+
"user": user_text,
|
| 653 |
"intent": intent,
|
| 654 |
"sentiment": sentiment,
|
| 655 |
"resolution": resolution,
|
|
|
|
| 668 |
save_chat_to_db(
|
| 669 |
conn,
|
| 670 |
user_id=uid,
|
| 671 |
+
user_message=user_text,
|
| 672 |
bot_reply=display_reply,
|
| 673 |
intent=intent,
|
| 674 |
sentiment=sentiment,
|