Spaces:
Paused
Paused
Carlosito16
commited on
Commit
•
f6be64e
1
Parent(s):
87a53f8
Update pages/3_chat.py
Browse files- pages/3_chat.py +2 -1
pages/3_chat.py
CHANGED
@@ -69,7 +69,7 @@ def new_retrieve_answer():
|
|
69 |
print(answer["chat_history"])
|
70 |
|
71 |
st.session_state.chat_history.append({"message": st.session_state.my_text_input, "is_user": True})
|
72 |
-
st.session_state.chat_history.append({"message": answer['answer'][6:] , "is_user": False})
|
73 |
|
74 |
st.session_state.my_text_input = ""
|
75 |
|
@@ -93,6 +93,7 @@ if "history" not in st.session_state: #this one is for the google sheet logging
|
|
93 |
|
94 |
if "chat_history" not in st.session_state: #this one is to pass previous messages into chat flow
|
95 |
st.session_state.chat_history = []
|
|
|
96 |
|
97 |
|
98 |
llm_model = st.session_state['model']
|
|
|
69 |
print(answer["chat_history"])
|
70 |
|
71 |
st.session_state.chat_history.append({"message": st.session_state.my_text_input, "is_user": True})
|
72 |
+
st.session_state.chat_history.append({"message": eng_to_thai(answer['answer'][6:]).text , "is_user": False})
|
73 |
|
74 |
st.session_state.my_text_input = ""
|
75 |
|
|
|
93 |
|
94 |
if "chat_history" not in st.session_state: #this one is to pass previous messages into chat flow
|
95 |
st.session_state.chat_history = []
|
96 |
+
|
97 |
|
98 |
|
99 |
llm_model = st.session_state['model']
|