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

Fix displaying images in chat when the model returns them #42

Open
Odrec opened this issue Jun 12, 2024 · 0 comments
Open

Fix displaying images in chat when the model returns them #42

Odrec opened this issue Jun 12, 2024 · 0 comments
Assignees

Comments

@Odrec
Copy link
Collaborator

Odrec commented Jun 12, 2024

When using images to chat with the model, sometimes the model returns an image link in the answer. Right now that link appears broken in the chat. It would be better to detect the link during streaming and wrap it around st.image or some other way to display these images in the answer.

Example:

Screenshot from 2024-06-12 14-13-28

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