Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ 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 |
-
|
| 76 |
html_body=""
|
| 77 |
for user,bot in chat:
|
| 78 |
html_body += html_user.replace("$chat",user)
|
|
|
|
| 72 |
print(user_c)
|
| 73 |
if user_c:
|
| 74 |
user_c=user_c.strip('""').strip("''")
|
| 75 |
+
css=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)
|