Spaces:
Sleeping
Sleeping
Léo Bourrel
commited on
Commit
·
decc199
1
Parent(s):
da7a60c
fix: udpate static data + import icons from cdn path
Browse files
sorbobotapp/app.py
CHANGED
@@ -80,9 +80,9 @@ with chat_column:
|
|
80 |
div = f"""
|
81 |
<div class="chat-row
|
82 |
{'' if chat.origin == 'ai' else 'row-reverse'}">
|
83 |
-
<img class="chat-icon" src="
|
84 |
-
'
|
85 |
-
else '
|
86 |
width=32 height=32>
|
87 |
<div class="chat-bubble
|
88 |
{'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
|
|
|
80 |
div = f"""
|
81 |
<div class="chat-row
|
82 |
{'' if chat.origin == 'ai' else 'row-reverse'}">
|
83 |
+
<img class="chat-icon" src="https://cdn-icons-png.flaticon.com/512/{
|
84 |
+
'1129/1129398.png' if chat.origin == 'ai'
|
85 |
+
else '1077/1077012.png'}"
|
86 |
width=32 height=32>
|
87 |
<div class="chat-bubble
|
88 |
{'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
|
sorbobotapp/css.py
CHANGED
@@ -2,6 +2,6 @@ import streamlit as st
|
|
2 |
|
3 |
|
4 |
def load_css():
|
5 |
-
with open("static/styles.css", "r") as f:
|
6 |
css = f"<style>{f.read()}</style>"
|
7 |
st.markdown(css, unsafe_allow_html=True)
|
|
|
2 |
|
3 |
|
4 |
def load_css():
|
5 |
+
with open("sorbobotapp/static/styles.css", "r") as f:
|
6 |
css = f"<style>{f.read()}</style>"
|
7 |
st.markdown(css, unsafe_allow_html=True)
|
{static → sorbobotapp/static}/ai_icon.png
RENAMED
File without changes
|
{static → sorbobotapp/static}/styles.css
RENAMED
File without changes
|
{static → sorbobotapp/static}/user_icon.png
RENAMED
File without changes
|