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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbfb21a663594f176ae73c1aaa553bf6a18fa8c81d841885e50801abc774d2dc |
|
MD5 | 4bb506703e5a191ac80352d680aab73d |
|
BLAKE2b-256 | c75e580a5eab39e43ab40c2a5c1e4b854e4ee6bfbf2f2eab758329f2d79f3dea |
Close
Hashes for st_multimodal_chatinput-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c21e7a39c9e7543c28a32e4996b7de8bb8913aa5f2e5a425d218cc226afb9f4 |
|
MD5 | 00515eba7ebcc26d35b1a4eb517f31c5 |
|
BLAKE2b-256 | fee5410e6d0d8f5987cf19c07e21c6a8db41018f513f96de1d03706db924fcd6 |