Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 856 Bytes

README.md

File metadata and controls

58 lines (38 loc) · 856 Bytes

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