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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e47651c658143ce47757213acef1df8a941d94f35d15aa3d60ee1b69f169fe74 |
|
MD5 | 0769e4f4bf46b8325ea9a0de61f0fd00 |
|
BLAKE2b-256 | 65363e9d7a313323661e2f321210784626f5bc692cd856477b2a09062229e6d9 |
Close
Hashes for st_multimodal_chatinput-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0b2635c882f73a771448870f96af8404dbcdf584dc089383e9929e24c0e4fd |
|
MD5 | 83d844caabcc31b54fce49d5370498d3 |
|
BLAKE2b-256 | 8e19eab4af693806e093d6bbcadfca7c9bf5cdcdabf97d04e410d67c9485bfb4 |