Streamlit component that allows you to accept multi-modal inputs through a chat interface.
Project description
Streamlit Multimodal Chat Input
A Streamlit component that enables a rich multimodal chat interface, allowing users to input text and upload images within Streamlit applications.
Features
- Text Input: Users can type in their messages.
- Image Upload: Supports uploading images, enhancing the chat with a visual element.
- Clipboard Paste: Enables pasting images directly from the clipboard.
- Responsive Design: Adjusts to the width of the Streamlit container.
- Disabled State: Can be set to a disabled state, making the input and button non-interactive and visually distinct.
Installation Instructions
To install the component, run the following command:
pip install st-multimodal-chatinput
Usage instructions
import streamlit as st
from st_multimodal_chatinput import multimodal_chatinput
chatinput = multimodal_chatinput()
uploaded_images = chatinput["uploadedImages"] ##list of base64 encodings of uploaded images
text = chatinput["textInput"] ##submitted text
Contributing
Pull requests for some of the to-dos are more than welcome.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for st-multimodal-chatinput-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68c8110dacac65608c8db528b19fd016639330f1419cabff0c50c46aa435264 |
|
MD5 | 4337ce08bc0e64e4882ae205dba4ecf9 |
|
BLAKE2b-256 | 512e266406f36c96230a9642731388ebb74709590555b3bafdac09600e27cea1 |
Close
Hashes for st_multimodal_chatinput-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ba8dd0c4104bb3a2e727988593d65fface1470be7d7caa1923820d9f587624c |
|
MD5 | a7596cd052ce412a8877f796aa094d64 |
|
BLAKE2b-256 | ec5b82ce702755e573ac3165c2837ee7f0fa54b522fc5a7bd449d88481925903 |