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
st-multimodal-chatinput-0.1.6.tar.gz
(444.5 kB
view hashes)
Built Distribution
Close
Hashes for st-multimodal-chatinput-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026cc8fdcf4e67c133ca9f9977a8adc9d92ade7c07d9f7ea32dd55b657573946 |
|
MD5 | 1b96473626502fd69195a82b625680f9 |
|
BLAKE2b-256 | 2684d3dfef62c81a440063b569f3de8a8bc9d2067524c0d852c88098eb20be8a |
Close
Hashes for st_multimodal_chatinput-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a1e7118d93330281011dfa9bd5303a1314e6661bcb076c4534ff39ad9eb8233 |
|
MD5 | 3fb78eb05469abe438891b50be829545 |
|
BLAKE2b-256 | 43ae7b9b996116fc040dc098bb2628b3d7a0c2d5f5df1460356a1634d1a70781 |