Spaces:
Runtime error
Runtime error
Update helper.py
Browse filesRemove `background_color`
helper.py
CHANGED
@@ -93,8 +93,9 @@ def show_each_message(message, role, area=None):
|
|
93 |
name = gpt_name
|
94 |
background_color = gpt_background_color
|
95 |
area[0](f"\n<div class='avatar'>{icon}<h2>{name}:</h2></div>", unsafe_allow_html=True)
|
96 |
-
area[1](f"""<div class='content-div' style='background-color: {background_color};'>\n\n{message}""",
|
97 |
-
|
|
|
98 |
|
99 |
|
100 |
def show_messages(messages: list):
|
|
|
93 |
name = gpt_name
|
94 |
background_color = gpt_background_color
|
95 |
area[0](f"\n<div class='avatar'>{icon}<h2>{name}:</h2></div>", unsafe_allow_html=True)
|
96 |
+
#area[1](f"""<div class='content-div' style='background-color: {background_color};'>\n\n{message}""",
|
97 |
+
# unsafe_allow_html=True)
|
98 |
+
area[1](f"""<div class='content-div'>\n\n{message}</div>""", unsafe_allow_html=True)
|
99 |
|
100 |
|
101 |
def show_messages(messages: list):
|