Spaces:
Sleeping
Sleeping
Update convosim.py
Browse files- convosim.py +1 -1
convosim.py
CHANGED
@@ -77,7 +77,7 @@ for msg in memoryA.buffer_as_messages:
|
|
77 |
role = "user" if type(msg) == HumanMessage else "assistant"
|
78 |
st.chat_message(role).write(msg.content)
|
79 |
|
80 |
-
if prompt := st.chat_input(
|
81 |
st.session_state['sent_messages'] += 1
|
82 |
st.chat_message("user").write(prompt)
|
83 |
if 'convo_id' not in st.session_state:
|
|
|
77 |
role = "user" if type(msg) == HumanMessage else "assistant"
|
78 |
st.chat_message(role).write(msg.content)
|
79 |
|
80 |
+
if prompt := st.chat_input(): #account for next interaction
|
81 |
st.session_state['sent_messages'] += 1
|
82 |
st.chat_message("user").write(prompt)
|
83 |
if 'convo_id' not in st.session_state:
|