Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,17 +41,15 @@ def get_nlp(model_name: str):
|
|
41 |
|
42 |
# Enhanced label mapping with modern styling for dark blue theme
|
43 |
LABEL_MAPPINGS = {
|
44 |
-
"LABEL_0": {"code": 0, "name": "
|
45 |
"LABEL_1": {"code": 1, "name": "negative", "emoji": "😢", "color": "#f87171", "bg": "rgba(248, 113, 113, 0.2)", "description": "เชิงลบ"},
|
46 |
"LABEL_2": {"code": 2, "name": "neutral", "emoji": "😐", "color": "#facc15", "bg": "rgba(250, 204, 21, 0.2)", "description": "เป็นกลาง"},
|
47 |
"LABEL_3": {"code": 3, "name": "positive", "emoji": "😊", "color": "#34d399", "bg": "rgba(52, 211, 153, 0.2)", "description": "เชิงบวก"},
|
48 |
-
"LABEL_4": {"code": 4, "name": "very positive", "emoji": "🤩", "color": "#22c55e", "bg": "rgba(34, 197, 94, 0.2)", "description": "เชิงบวกมาก"},
|
49 |
|
50 |
-
"0": {"code": 0, "name": "
|
51 |
-
"1": {"code": 1, "name": "
|
52 |
-
"2": {"code": 2, "name": "
|
53 |
-
|
54 |
-
"4": {"code": 4, "name": "very positive", "emoji": "🤩", "color": "#22c55e", "bg": "rgba(34, 197, 94, 0.2)", "description": "เชิงบวกมาก"},
|
55 |
}
|
56 |
|
57 |
def get_label_info(label: str) -> Dict:
|
|
|
41 |
|
42 |
# Enhanced label mapping with modern styling for dark blue theme
|
43 |
LABEL_MAPPINGS = {
|
44 |
+
"LABEL_0": {"code": 0, "name": "question", "emoji": "🤔", "color": "#ef4444", "bg": "rgba(239, 68, 68, 0.2)", "description": "เชิงลบมาก"},
|
45 |
"LABEL_1": {"code": 1, "name": "negative", "emoji": "😢", "color": "#f87171", "bg": "rgba(248, 113, 113, 0.2)", "description": "เชิงลบ"},
|
46 |
"LABEL_2": {"code": 2, "name": "neutral", "emoji": "😐", "color": "#facc15", "bg": "rgba(250, 204, 21, 0.2)", "description": "เป็นกลาง"},
|
47 |
"LABEL_3": {"code": 3, "name": "positive", "emoji": "😊", "color": "#34d399", "bg": "rgba(52, 211, 153, 0.2)", "description": "เชิงบวก"},
|
|
|
48 |
|
49 |
+
"0": {"code": 0, "name": "negative", "emoji": "😢", "color": "#f87171", "bg": "rgba(248, 113, 113, 0.2)", "description": "เชิงลบ"},
|
50 |
+
"1": {"code": 1, "name": "neutral", "emoji": "😐", "color": "#facc15", "bg": "rgba(250, 204, 21, 0.2)", "description": "เป็นกลาง"},
|
51 |
+
"2": {"code": 2, "name": "positive", "emoji": "😊", "color": "#34d399", "bg": "rgba(52, 211, 153, 0.2)", "description": "เชิงบวก"},
|
52 |
+
|
|
|
53 |
}
|
54 |
|
55 |
def get_label_info(label: str) -> Dict:
|