Spaces:
Sleeping
Sleeping
Commit
·
0c8ab93
1
Parent(s):
963666a
Change message color
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ def Page():
|
|
188 |
name="User" if item["role"] == "user" else "Qwen2-0.5B-Instruct",
|
189 |
avatar_background_color="#33cccc" if item["role"] == "assistant" else "#ff991f",
|
190 |
border_radius="20px",
|
191 |
-
style="background-color:lightgrey!important;"
|
192 |
):
|
193 |
item["content"] = re.sub('<\|im_end\|>', '', item["content"])
|
194 |
solara.Markdown(item["content"])
|
|
|
188 |
name="User" if item["role"] == "user" else "Qwen2-0.5B-Instruct",
|
189 |
avatar_background_color="#33cccc" if item["role"] == "assistant" else "#ff991f",
|
190 |
border_radius="20px",
|
191 |
+
style="background-color:darkgrey!important;" if solara.lab.theme.dark_effective else "background-color:lightgrey!important;"
|
192 |
):
|
193 |
item["content"] = re.sub('<\|im_end\|>', '', item["content"])
|
194 |
solara.Markdown(item["content"])
|