Update app.py
Browse files
app.py
CHANGED
|
@@ -27,9 +27,10 @@ easy to search, filter</li>
|
|
| 27 |
|
| 28 |
</ul>
|
| 29 |
|
| 30 |
-
KaggleX AI Course Coordinator is developed by Lorentz Yeung
|
| 31 |
""", unsafe_allow_html=True)
|
| 32 |
|
|
|
|
|
|
|
| 33 |
#######################################################
|
| 34 |
####################### UI ############################
|
| 35 |
# Setting page title and header
|
|
@@ -98,9 +99,9 @@ if persist_directory :
|
|
| 98 |
# https://docs.streamlit.io/library/api-reference/chat/st.chat_message
|
| 99 |
# https://discuss.streamlit.io/t/streamlit-chat-avatars-not-working-on-cloud/46713/2
|
| 100 |
# thumbs, adventurer, big-smile, micah, bottts
|
| 101 |
-
message(st.session_state["user_history"][i], is_user=True, key=str(i) + '_user', avatar_style="
|
| 102 |
# message(st.session_state["ai_history"][i], key=str(i), avatar_style="KaggleX.jpg")
|
| 103 |
-
message(st.session_state["ai_history"][i], key=str(i), avatar_style='bottts
|
| 104 |
#st.chat_message(st.session_state["user_history"][i], is_user=True, key=str(i) + '_user', AvatarStyle="adventurer")
|
| 105 |
#st.chat_message(st.session_state["ai_history"][i], key=str(i), AvatarStyle='bottts-neutral')
|
| 106 |
|
|
|
|
| 27 |
|
| 28 |
</ul>
|
| 29 |
|
|
|
|
| 30 |
""", unsafe_allow_html=True)
|
| 31 |
|
| 32 |
+
st.sidebar.markdown("<p style='text-align: right'>KaggleX Developed and maintained by <a href='https://entzyeung.github.io/portfolio/index.html'>Lorentz Yeung</a></p>", unsafe_allow_html=True)
|
| 33 |
+
|
| 34 |
#######################################################
|
| 35 |
####################### UI ############################
|
| 36 |
# Setting page title and header
|
|
|
|
| 99 |
# https://docs.streamlit.io/library/api-reference/chat/st.chat_message
|
| 100 |
# https://discuss.streamlit.io/t/streamlit-chat-avatars-not-working-on-cloud/46713/2
|
| 101 |
# thumbs, adventurer, big-smile, micah, bottts
|
| 102 |
+
message(st.session_state["user_history"][i], is_user=True, key=str(i) + '_user', avatar_style="initials")
|
| 103 |
# message(st.session_state["ai_history"][i], key=str(i), avatar_style="KaggleX.jpg")
|
| 104 |
+
message(st.session_state["ai_history"][i], key=str(i), avatar_style='bottts')
|
| 105 |
#st.chat_message(st.session_state["user_history"][i], is_user=True, key=str(i) + '_user', AvatarStyle="adventurer")
|
| 106 |
#st.chat_message(st.session_state["ai_history"][i], key=str(i), AvatarStyle='bottts-neutral')
|
| 107 |
|