You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if st.session_state['generated']:
for i in range(len(st.session_state['generated'])-1, -1, 1):
message(st.session_state['past'][i], is_user=True, key=str(i) + '_user', avatar_style='personas')
message(st.session_state['generated'][i], key=str(i), avatar_style='identicon')
Using a positive step in the messages should be possible. However, it stays one behind if using a positive step (1),
The library seems to only work if step on the for loop is set to -1.
The text was updated successfully, but these errors were encountered:
Sorry I didn't get what you mean, if you mean the step value in the range(), then it has nothing to do with this library, streamlit-chat is just a UI component, you might want to look at how the data is stored in the session_state
feel free to reopen the issue if needed, and tag me so I will be notified
Using a positive step in the messages should be possible. However, it stays one behind if using a positive step (1),
The library seems to only work if step on the for loop is set to -1.
The text was updated successfully, but these errors were encountered: