No project description provided
Project description
streamlit-chitchat
make chat messages easier to style in streamlit
streamlit-chitchat lets you style messages from the user and responses from a bot differently. you can also update an existing message, so that streamed tokens render as they are received.
Installation
Open a terminal and run:
$ pip install streamlit-chitchat
example use
in your streamlit app, insert:
from streamlit-chitchat.chitchat import message
message('hello, how are you?', is_user=True)
bot=message()
for w in 'excellent! have any plans for tonight?'.split(' '):
bot.write(w+' ')
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
Built Distribution
Close
Hashes for streamlit_chitchat-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e0a0e051c904edad493de3e72be300b1055af32a39c4469eb1cc5c3de8f9b1 |
|
MD5 | 41897d024600f4352bddbd1a23159e11 |
|
BLAKE2b-256 | b757b8d0597245d605e50b2979c5aadf507b2ae88d3d07a6fdb1f79a9ed4b224 |