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

Image Display #38

Closed
Kashif-Raza6 opened this issue May 14, 2023 · 1 comment
Closed

Image Display #38

Kashif-Raza6 opened this issue May 14, 2023 · 1 comment

Comments

@Kashif-Raza6
Copy link

Is there any way to display the images in chat format. I am trying to display the image with
message(st.session_state["generated"][i], key=str(i), avatar_style="thumbs") but its displaying the error.

@yashppawar
Copy link
Member

Combined with streamlit static serving and latest version of streamlit-chat (supporting html & markdown), it is now possible

from streamlit_chat import message

# local image stored in the static folder, see static file serving (advanced features, streamlit)
message('![cat image](/app/static/cat.jpg)')

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

2 participants