JUNGU commited on
Commit
7a93766
·
1 Parent(s): 1994aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -3
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="new_streamlit/resolve/main/static/{
125
- 'ai_icon.png' if chat.origin == 'ai'
126
- else 'user_icon.png'}"
127
  width=32 height=32>
128
  <div class="chat-bubble
129
  {'ai-bubble' if chat.origin == 'ai' else 'human-bubble'}">
130
  &#8203;{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
  &#8203;{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
+ # &#8203;{chat.message}
143
+ # </div>
144
+ # </div>
145
  """
146
  st.markdown(div, unsafe_allow_html=True)
147