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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de64a9051e3bdf13b3e28eca2e9598015cf45859ac928f69ee67001bd90d08a5 |
|
MD5 | 2481305b6c16be68147914729c2ebc18 |
|
BLAKE2b-256 | a768e7f90b9e2665cfc57fd55dde8f3a7085caaebfdbe301813b90bf2926779f |
Close
Hashes for st_multimodal_chatinput-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d3995a59265a8adb77a4e918c6bfac98a4e4ff6f86cf43b9035a5fc43ae2c2b |
|
MD5 | fe38ed685377408f1ccf331f575bc02c |
|
BLAKE2b-256 | d58876c213953211aa99687e122c5126dfee50cab59c6adba0bbddb56e4d9ef3 |