ivnban27-ctl commited on
Commit
1ce2341
·
verified ·
1 Parent(s): 8c7adcd

Update convosim.py

Browse files
Files changed (1) hide show
  1. 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(disabled=st.session_state['total_messages'] > MAX_MSG_COUNT - 4): #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:
 
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: