Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -119,29 +119,18 @@ credit_card_placeholder = st.empty()
|
|
119 |
with chat_placeholder:
|
120 |
for chat in st.session_state.history:
|
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 |
-
# <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 |
|
|
|
119 |
with chat_placeholder:
|
120 |
for chat in st.session_state.history:
|
121 |
div = f"""
|
122 |
+
|
123 |
<div class="chat-row
|
124 |
{'' if chat.origin == 'ai' else 'row-reverse'}">
|
125 |
+
<img class="chat-icon" src="https://cdn-icons-png.flaticon.com/{
|
126 |
+
'/512/3058/3058838.png' if chat.origin == 'ai'
|
127 |
+
else '512/1177/1177568.png'}"
|
128 |
width=32 height=32>
|
129 |
<div class="chat-bubble
|
130 |
{'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
|
131 |
​{chat.message}
|
132 |
</div>
|
133 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
"""
|
135 |
st.markdown(div, unsafe_allow_html=True)
|
136 |
|