-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
28 lines (26 loc) · 1.16 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Config:
DARK_MODE_CSS = """
<style>
body { background-color: #2E2E2E; color: white; }
.chat-bubble { color: white; }
.chat-bubble.user { background-color: #2C3E50; }
.chat-bubble.ai { background-color: #34495E; }
.chat-icon.user { background-color: #1ABC9C; }
.chat-icon.ai { background-color: #3498DB; }
</style>
"""
LIGHT_MODE_CSS = """
<style>
body { background-color: #FFFFFF; color: black; }
.chat-bubble.user { background-color: #DCF8C6; }
.chat-bubble.ai { background-color: #ECECEC; }
.chat-icon.user { background-color: #34B7F1; }
.chat-icon.ai { background-color: #00BFA5; }
</style>
"""
SAFETY_SETTINGS = [
{"category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"},
{"category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_MEDIUM_AND_ABOVE"},
{"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"},
{"category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"},
]