undo76 / st-chat-message

Streamlit chat message component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

st-chat-message

Description

This is a simple chat message component for streamlit. It is based on the streamlit-chat component, trying to be as compatible as possible, but it adding a few features:

  • Markdown support
  • LaTeX support
  • Tables

Installation

pip install st-chat-message

or

poetry add st-chat-message

Usage

import streamlit as st
from st_chat_message import message

message("Hello world!", is_user=True)
message("Hi")

img.png

Buiding from source

Prerequisites

  • nodejs >= 18.x
  • yarn >= 1.22.x
  • poetry >= 1.2.x
  • python >= 3.8.x

Building

./build.sh

Publishing

poetry publish 

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Streamlit chat message component


Languages

Language:TypeScript 44.7%Language:HTML 30.6%Language:Python 18.7%Language:JavaScript 4.4%Language:Shell 1.3%Language:CSS 0.4%