You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This app is so awesome. The code is super clean and it's really easy to use. I thought I might put some information in here from things I've learned along the way. If this isn't appropriate just let me know (I'm extremely new to all this.)
I updated the random integer code a bit like this:
# random user picture
# user_av = random.randint(0, 100)
user_av = 3
# random bott picture
# bott_av = random.randint(0, 100)
bott_av = 10
And then at the very bottom of main.py I can change the avatar_style here:
if st.session_state['generated']:
for i in range(len(st.session_state['generated'])-1, -1, -1):
message(st.session_state["generated"][i],seed=bott_av , key=str(i))
message(st.session_state['past'][i], is_user=True,avatar_style="personas",seed=user_av, key=str(i) + '_user')
Honestly, I am still not exactly sure how the avatars work. I think it has something to do with these: https://www.dicebear.com/styles
If I get to the bottom of it further I'll let you know.
The text was updated successfully, but these errors were encountered:
This app is so awesome. The code is super clean and it's really easy to use. I thought I might put some information in here from things I've learned along the way. If this isn't appropriate just let me know (I'm extremely new to all this.)
I wanted to have a little more control over the avatars that appear on the chatbot. So, in here:
https://github.com/stephansturges/GPTflix/blob/main/chat/main.py
I updated the random integer code a bit like this:
And then at the very bottom of main.py I can change the avatar_style here:
Honestly, I am still not exactly sure how the avatars work. I think it has something to do with these:
https://www.dicebear.com/styles
If I get to the bottom of it further I'll let you know.
The text was updated successfully, but these errors were encountered: