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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d4681dd338a9c50eb341a8f930f49ef23f27b89209f58f3e89c42134e8ac1f |
|
MD5 | 46130caae6ad271d55a76792bae4a2fe |
|
BLAKE2b-256 | 86e850ab4217b7474149aef88047b3052d1266a3c132cae05f90eaa78abc1369 |