Spaces:
Sleeping
Sleeping
update convo on scoring
Browse files- pages/convosim.py +2 -0
pages/convosim.py
CHANGED
@@ -202,6 +202,8 @@ with st.sidebar:
|
|
202 |
if st.button("Score Conversation"):
|
203 |
st.session_state['scored'] = True
|
204 |
push_latest_confirmation_db()
|
|
|
|
|
205 |
st.switch_page("pages/training_adherence.py")
|
206 |
|
207 |
st.session_state['total_messages'] = len(memoryA.chat_memory.messages)
|
|
|
202 |
if st.button("Score Conversation"):
|
203 |
st.session_state['scored'] = True
|
204 |
push_latest_confirmation_db()
|
205 |
+
transcript = memoryA.load_memory_variables({})[memoryA.memory_key]
|
206 |
+
update_convo(st.session_state["db_client"], st.session_state["convo_id"], transcript)
|
207 |
st.switch_page("pages/training_adherence.py")
|
208 |
|
209 |
st.session_state['total_messages'] = len(memoryA.chat_memory.messages)
|