Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -121,15 +121,27 @@ with chat_placeholder:
|
|
121 |
div = f"""
|
122 |
<div class="chat-row
|
123 |
{'' if chat.origin == 'ai' else 'row-reverse'}">
|
124 |
-
<img class="chat-icon" src="
|
125 |
-
'
|
126 |
-
else '
|
127 |
width=32 height=32>
|
128 |
<div class="chat-bubble
|
129 |
{'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
|
130 |
​{chat.message}
|
131 |
</div>
|
132 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
"""
|
134 |
st.markdown(div, unsafe_allow_html=True)
|
135 |
|
|
|
121 |
div = f"""
|
122 |
<div class="chat-row
|
123 |
{'' if chat.origin == 'ai' else 'row-reverse'}">
|
124 |
+
<img class="chat-icon" src="{
|
125 |
+
'https://cdn-icons-png.flaticon.com/512/3058/3058838.png' if chat.origin == 'ai'
|
126 |
+
else 'https://cdn-icons-png.flaticon.com/512/1177/1177568.png'}"
|
127 |
width=32 height=32>
|
128 |
<div class="chat-bubble
|
129 |
{'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
|
130 |
​{chat.message}
|
131 |
</div>
|
132 |
</div>
|
133 |
+
|
134 |
+
# <div class="chat-row
|
135 |
+
# {'' if chat.origin == 'ai' else 'row-reverse'}">
|
136 |
+
# <img class="chat-icon" src="new_streamlit/resolve/main/static/{
|
137 |
+
# 'ai_icon.png' if chat.origin == 'ai'
|
138 |
+
# else 'user_icon.png'}"
|
139 |
+
# width=32 height=32>
|
140 |
+
# <div class="chat-bubble
|
141 |
+
# {'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
|
142 |
+
# ​{chat.message}
|
143 |
+
# </div>
|
144 |
+
# </div>
|
145 |
"""
|
146 |
st.markdown(div, unsafe_allow_html=True)
|
147 |
|