Omnibus commited on
Commit
b7094bc
1 Parent(s): 4163d83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -71,7 +71,8 @@ def make_filename(inp):
71
  def get_screenshot(chat,css_in,w,h,user_c,bot_c,background_c,font_c):
72
  print(user_c)
73
  if user_c:
74
- html_user=css.replace("background: #367bb9; #user_c",f"background: {user_c.strip('""')};")
 
75
  html_body=""
76
  for user,bot in chat:
77
  html_body += html_user.replace("$chat",user)
 
71
  def get_screenshot(chat,css_in,w,h,user_c,bot_c,background_c,font_c):
72
  print(user_c)
73
  if user_c:
74
+ user_c=user_c.strip('""').strip("''")
75
+ html_user=css.replace("background: #367bb9; #user_c",f"background: {user_c};")
76
  html_body=""
77
  for user,bot in chat:
78
  html_body += html_user.replace("$chat",user)