ageraustine commited on
Commit
9466441
1 Parent(s): 9776a98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ if st.session_state['generated']:
139
  with response_container:
140
  for i in range(len(st.session_state['generated'])):
141
  message(st.session_state["generated"][i], key=str(i))
142
- if len(st.session_state["past"]) > 0:
143
  message(st.session_state["past"][i], is_user=True, key=str(i) + '_user')
144
 
145
 
 
139
  with response_container:
140
  for i in range(len(st.session_state['generated'])):
141
  message(st.session_state["generated"][i], key=str(i))
142
+ if len(st.session_state["past"]) > 0 and i < len(st.session_state["past"]):
143
  message(st.session_state["past"][i], is_user=True, key=str(i) + '_user')
144
 
145