RomZay commited on
Commit
bda3dd6
·
verified ·
1 Parent(s): a47df97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,14 +94,14 @@ def render_message(history):
94
  messages_html += f"""
95
  <div style='display: flex; align-items: center; margin-bottom: 10px;'>
96
  <img src='{user_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>
97
- <span style='color: white;'>**{user_profile}**: {user_message}</span>
98
  </div><br>"""
99
 
100
  if assistant_message:
101
  messages_html += f"""
102
  <div style='display: flex; align-items: center; margin-bottom: 10px;'>
103
  <img src='{assistant_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>
104
- <span style='color: white;'>**{assistant_profile}**: {assistant_message}</span>
105
  </div><br>"""
106
 
107
  messages_html += "</div></div>"
 
94
  messages_html += f"""
95
  <div style='display: flex; align-items: center; margin-bottom: 10px;'>
96
  <img src='{user_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>
97
+ <span style='color: white;'>{gr.Markdown(user_message)}</span>
98
  </div><br>"""
99
 
100
  if assistant_message:
101
  messages_html += f"""
102
  <div style='display: flex; align-items: center; margin-bottom: 10px;'>
103
  <img src='{assistant_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>
104
+ <span style='color: white;'>{gr.Markdown(assistant_message)}</span>
105
  </div><br>"""
106
 
107
  messages_html += "</div></div>"