Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,13 +60,13 @@ def render_message(history):
|
|
| 60 |
messages_html += f"<div style='display: flex; align-items: center; margin-bottom: 10px;'>"
|
| 61 |
if user_pic:
|
| 62 |
messages_html += f"<img src='{user_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>"
|
| 63 |
-
messages_html += f"<b>{user_profile}:</b> {user_message}</div><br>"
|
| 64 |
|
| 65 |
if assistant_message:
|
| 66 |
messages_html += f"<div style='display: flex; align-items: center; margin-bottom: 10px;'>"
|
| 67 |
if assistant_pic:
|
| 68 |
messages_html += f"<img src='{assistant_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>"
|
| 69 |
-
messages_html += f"<b>{assistant_profile}:</b> {assistant_message}</div><br>"
|
| 70 |
|
| 71 |
return messages_html
|
| 72 |
|
|
@@ -128,7 +128,7 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
| 128 |
max-height: 400px;
|
| 129 |
overflow-y: auto;
|
| 130 |
border: 1px solid #ccc;
|
| 131 |
-
background-color: #
|
| 132 |
padding: 10px;
|
| 133 |
}
|
| 134 |
|
|
|
|
| 60 |
messages_html += f"<div style='display: flex; align-items: center; margin-bottom: 10px;'>"
|
| 61 |
if user_pic:
|
| 62 |
messages_html += f"<img src='{user_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>"
|
| 63 |
+
messages_html += f"<b>{user_profile}:</b><br /> {user_message}</div><br>"
|
| 64 |
|
| 65 |
if assistant_message:
|
| 66 |
messages_html += f"<div style='display: flex; align-items: center; margin-bottom: 10px;'>"
|
| 67 |
if assistant_pic:
|
| 68 |
messages_html += f"<img src='{assistant_pic}' style='width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;'>"
|
| 69 |
+
messages_html += f"<b>{assistant_profile}:</b><br /> {assistant_message}</div><br>"
|
| 70 |
|
| 71 |
return messages_html
|
| 72 |
|
|
|
|
| 128 |
max-height: 400px;
|
| 129 |
overflow-y: auto;
|
| 130 |
border: 1px solid #ccc;
|
| 131 |
+
background-color: #242424;
|
| 132 |
padding: 10px;
|
| 133 |
}
|
| 134 |
|