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
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
st-multimodal-chatinput-0.0.1.tar.gz
(443.1 kB
view hashes)
Built Distribution
Close
Hashes for st-multimodal-chatinput-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3932cdecc4b04ab65132440edc4fb8d8eb16af0efe393578befeacee74d2e2 |
|
MD5 | 53155d26fb06f76b1e1cec2eb99cad51 |
|
BLAKE2b-256 | fb83dc85cd089e309839360474801e87501b2e7127203b0dde0df5f0b32885f0 |
Close
Hashes for st_multimodal_chatinput-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4a20a7520bb11c0adbc9d119635fbec1184a26b10161feaff001be3a7894bbb |
|
MD5 | 77cbbc26c443d286b913a49fa3013909 |
|
BLAKE2b-256 | 7e0bf48ba177d3ce536efac9fbd5d3ba2608749ef8bf7c72bf95253b4d2c9405 |