Skip to main content

Streamlit component for displaying chat messages

Project description

streamlit_custom_chat

Streamlit custom chat messages and container for the chat messages, takes an array of messages for an llm, where each messages can have user or assitant role and the array is configured as [{"role":"user", "content":"", "key":""}, {"role":"assistant", "content":"", "key":""}]

Installation instructions

python -m pip install --index-url https://test.pypi.org/simple/ --no-deps streamlit_custom_chat

Usage instructions

import streamlit as st

from streamlit_custom_chat import ChatContainer

value = ChatContainer(messages=[], key="")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_custom_chat-0.0.54.tar.gz (682.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_custom_chat-0.0.54-py3-none-any.whl (685.5 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_custom_chat-0.0.54.tar.gz.

File metadata

  • Download URL: streamlit_custom_chat-0.0.54.tar.gz
  • Upload date:
  • Size: 682.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for streamlit_custom_chat-0.0.54.tar.gz
Algorithm Hash digest
SHA256 afa5038e32338e73c7960dd0b7dbe7589d6a290c923b57a284a325b9025f20e7
MD5 e049fec5ef24351b15870707be127bbc
BLAKE2b-256 0dc14a11d69245e06315e83f7191fdf165c5655eba1565025ef6b3eda87a0048

See more details on using hashes here.

File details

Details for the file streamlit_custom_chat-0.0.54-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_custom_chat-0.0.54-py3-none-any.whl
Algorithm Hash digest
SHA256 084c374a924e42f9b1dee5891836fa1644b1ff6009b97105ff1a986183c2b1e3
MD5 419e9d1a68cee70f2aeed60891900c50
BLAKE2b-256 df47318a8e55d214d577f0075f1ba286f37559293de0a4e6e26c14379ec74c84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page