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.2.tar.gz (683.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.1.2-py3-none-any.whl (686.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_custom_chat-0.1.2.tar.gz
  • Upload date:
  • Size: 683.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.1.2.tar.gz
Algorithm Hash digest
SHA256 d7bfe1b59ca8b56b762ac3f532556fc22a4aa6033dfa3707d7dc9de703060e2a
MD5 f97669b3d4af228b52dcb5e00d77eec3
BLAKE2b-256 45cd4acc9a72859c374cacac6fcda059e8b8c3bc2f20b4497a3d878231809223

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_custom_chat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64ea6350b134e6f03de016d95a60562d5f7bed2a74cec3c372708ad0390ad188
MD5 d7c9809e636462b50a02542570c8cc69
BLAKE2b-256 038f8e1e0b1b35fe792dd2d7989ffdd341d2ff0d5ee2073509d173c06768b97b

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