Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,19 +94,20 @@ 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;'
|
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;'
|
105 |
</div><br>"""
|
106 |
|
107 |
messages_html += "</div></div>"
|
108 |
return messages_html
|
109 |
|
|
|
110 |
js = """
|
111 |
function Scrolldown() {
|
112 |
const messagesContainer = document.getElementById('chatbox-container');
|
|
|
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>"
|
108 |
return messages_html
|
109 |
|
110 |
+
|
111 |
js = """
|
112 |
function Scrolldown() {
|
113 |
const messagesContainer = document.getElementById('chatbox-container');
|