Comments (11)
@ehfehsan Based on the #PR You can chose one of the following (from the init file on line 30)
AvatarStyle = Literal[
"adventurer",
"adventurer-neutral",
"avataaars",
"avataaars-neutral",
"big-ears",
"big-ears-neutral",
"big-smile",
"bottts",
"bottts-neutral",
"croodles",
"croodles-neutral",
"fun-emoji",
"icons",
"identicon",
"initials",
"lorelei",
"lorelei-neutral",
"micah",
"miniavs",
"open-peeps",
"personas",
"pixel-art",
"pixel-art-neutral",
"shapes",
"thumbs",
]
Now message takes a avatar_style parameter as follows :
message( is_user=True, avatar_style = "adventurer" )
from st-chat.
Hi,
I am trying to add custom avatars to this, I go in to frontend/src/stChat.tsx and change avatarUrl, but my changes are not getting saved. Any idea on how to do this?
You have to build the source code
from st-chat.
Merged
@ahmadassaf
from st-chat.
Hi,
this a great option. thanks for that.
Can you send a sample code for loading png file as the avatar?
I tried pass avatar_style and it adds a prefix Get: /5.x/ to the pnc address and cannot load it.
Thanks in advance.
from st-chat.
I'd love to be able to change the icons. Also ,the screenshot in the readme is showing different one from the default ones.
from st-chat.
did a quick PR that allow me to pass a custom URL image as an Avatar #34
from st-chat.
Hey can you let us know how to build the source code? Been having issues with the npm build and python setup.py install commands.
from st-chat.
@vshankarathota Could you please tell me more in detail about the issues you're having with the npm build
and python setup.py
?
from st-chat.
@YashVardhan-AI can you please help on this part?
from st-chat.
@yashppawar will help you better
from st-chat.
@imSrbh as of now it can't be done directly, you can surely build from source if you want
If you are talking about screenshot, it is because the url was changed for API of dicebear, so with the same i updated default seed.
from st-chat.
Related Issues (20)
- Cannot print from browser
- streaming response in Streamlit using streamlit_chat -message HOT 4
- streamlit chat slow on streamlit cloud HOT 4
- Adding a copy button to the Message pane HOT 1
- Give user option to put the god damn input box to the bottom HOT 1
- Hyperlinks not working HOT 1
- Issues with HTML functionality in the `message` function HOT 1
- request for removing is_user align right HOT 1
- Ask same question multiple times cause error HOT 1
- Your app is having trouble loading the streamlit_chat.streamlit_chat component. HOT 5
- In streamlit chat the links are not getting embedded properly
- Images pass to the avatar won't appear on streamlit share
- allow_html=True throws error for `lookml` queries
- Option to modify background color for message? HOT 1
- Create a message from the bot with an image carousel
- No module named streamlit_chat in venv HOT 1
- when i use streamlit_chat.message to display text, Continuous English, length too long, resulting in exceeding the dialogue box
- UTF-8 special character are broken
- change default icon HOT 1
- Markdown displays image content, does not support PNG format images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from st-chat.