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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea30f43a61a281c5cb906c0a885a9a163d19e7d272a7c3e2dd6037101a406eae |
|
MD5 | f1c3017b8ea9cee522cf267c3e3885c5 |
|
BLAKE2b-256 | 2b23d84f5ddd2fa9bc6331762a64a935a26490e26be3517202a77f800b167a13 |
Close
Hashes for st_multimodal_chatinput-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 586429ebc5135a160804dc0f9b7812060c332dad2b7ec0be3a656aa2f0ef945b |
|
MD5 | 5a5186e96b50b57042cd109e9950fbb1 |
|
BLAKE2b-256 | 36878f166049415028fbbe7736ae7814a593626e9dc41075fcb5d7deb4e5f3be |