Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub - Message #72

Open
masterchop opened this issue Mar 13, 2024 · 0 comments
Open

Sub - Message #72

masterchop opened this issue Mar 13, 2024 · 0 comments

Comments

@masterchop
Copy link

On the example.py we can see that we have a dialog box for the user and the bot, when the bot responds is it possible to create a submessage? i want to provide sources but only if you want to see the sub-message otherwise it will be hidden.
Is it possible with this library?

if st.session_state['generated']:

for i in range(len(st.session_state['generated'])-1, -1, -1):
    message(st.session_state["generated"][i], key=str(i))
    message(st.session_state['past'][i], is_user=True, key=str(i) + '_user')

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant