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. The parameters are as follow:

messages, key, overflowY, scrollBackgroundColor, containerBorderColor,containerBorderRadius, containerHeight, containerBoxShadow, containerBackgroundColor, textColor, userBackgroundColor, agentBubbleBackgroundColor, bubblePaddingRight, bubblePaddingLeft, bubblePaddingBottom, bubblePaddingTop, fontWeight, bubbleBorderRadius, fontFamily

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.1.1.tar.gz (683.1 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.1.1-py3-none-any.whl (686.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_custom_chat-0.1.1.tar.gz
  • Upload date:
  • Size: 683.1 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.1.1.tar.gz
Algorithm Hash digest
SHA256 8bbdfa76f97d7f5742d860f2fb0c3e0ae0624734688431814fc7081d9ff866e6
MD5 e4e4f450a33f5f1afb708e6c62670cd2
BLAKE2b-256 bb2b69a4f0c9754f786b6ea17245461779d8eb2e7630199663cc9f2400d33b0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_custom_chat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0779ea30a54aac8f60f428e3675296a451032eda6ef8ef9dfbb249c6469d3ae4
MD5 e047a4f48d4b7225036ec67b4a91601d
BLAKE2b-256 bcbd9001b13cb79716693f10bd5c65e048eef0777577ae1fdb7fca3de95a2c3b

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