hushell commited on
Commit
036168d
1 Parent(s): a734f27

Update helper.py

Browse files

Remove `background_color`

Files changed (1) hide show
  1. helper.py +3 -2
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
- unsafe_allow_html=True)
 
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):