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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7466dc7fd081e0783847dc0efb83ffcce75e48b7b827efa14d3d3065d6d0de70 |
|
MD5 | 2d4a8e4d4ad40aa9862b8e54a7a06a58 |
|
BLAKE2b-256 | 4c1a7b59d89e4d5b85541bad95fbb9cca00580e304352b138be353bc677b8e0c |