Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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)
|