JonusNattapong commited on
Commit
82b204e
·
verified ·
1 Parent(s): 3c32de3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -13,6 +13,7 @@ logger = logging.getLogger(__name__)
13
  # Enhanced model list with descriptions
14
  MODEL_LIST = [
15
  ("ZombitX64/MultiSent-E5-Pro", "🏆 MultiSent E5 Pro - แนะนำ (ความแม่นยำสูงสุด)"),
 
16
  ("ZombitX64/Thai-sentiment-e5", "🎯 Thai Sentiment E5 - เฉพาะภาษาไทย"),
17
  ("poom-sci/WangchanBERTa-finetuned-sentiment", "🔥 WangchanBERTa - โมเดลไทยยอดนิยม"),
18
  ("SandboxBhh/sentiment-thai-text-model", "✨ Sandbox Thai - เร็วและแม่นยำ"),
@@ -54,6 +55,15 @@ MODEL_LABEL_MAPPINGS = {
54
  "LABEL_2": {"code": 2, "name": "neutral", "emoji": "😐", "color": "#facc15", "bg": "rgba(250, 204, 21, 0.2)", "description": "เป็นกลาง"},
55
  "LABEL_3": {"code": 3, "name": "positive", "emoji": "😊", "color": "#34d399", "bg": "rgba(52, 211, 153, 0.2)", "description": "เชิงบวก"},
56
  },
 
 
 
 
 
 
 
 
 
57
 
58
  # Thai Sentiment E5 - 3 classes (negative, neutral, positive)
59
  "ZombitX64/Thai-sentiment-e5": {
 
13
  # Enhanced model list with descriptions
14
  MODEL_LIST = [
15
  ("ZombitX64/MultiSent-E5-Pro", "🏆 MultiSent E5 Pro - แนะนำ (ความแม่นยำสูงสุด)"),
16
+ ("ZombitX64/MultiSent-E5-Pro-Plus","🏆 MultiSent E5 Pro Plus"),
17
  ("ZombitX64/Thai-sentiment-e5", "🎯 Thai Sentiment E5 - เฉพาะภาษาไทย"),
18
  ("poom-sci/WangchanBERTa-finetuned-sentiment", "🔥 WangchanBERTa - โมเดลไทยยอดนิยม"),
19
  ("SandboxBhh/sentiment-thai-text-model", "✨ Sandbox Thai - เร็วและแม่นยำ"),
 
55
  "LABEL_2": {"code": 2, "name": "neutral", "emoji": "😐", "color": "#facc15", "bg": "rgba(250, 204, 21, 0.2)", "description": "เป็นกลาง"},
56
  "LABEL_3": {"code": 3, "name": "positive", "emoji": "😊", "color": "#34d399", "bg": "rgba(52, 211, 153, 0.2)", "description": "เชิงบวก"},
57
  },
58
+
59
+ # dpo ZombitX64/MultiSent-E5-Pro
60
+ "ZombitX64/MultiSent-E5-Pro-Plus": {
61
+ "LABEL_0": {"code": 0, "name": "question", "emoji": "🤔", "color": "#60a5fa", "bg": "rgba(96, 165, 250, 0.2)", "description": "คำถาม"},
62
+ "LABEL_1": {"code": 1, "name": "negative", "emoji": "😢", "color": "#f87171", "bg": "rgba(248, 113, 113, 0.2)", "description": "เชิงลบ"},
63
+ "LABEL_2": {"code": 2, "name": "neutral", "emoji": "😐", "color": "#facc15", "bg": "rgba(250, 204, 21, 0.2)", "description": "เป็นกลาง"},
64
+ "LABEL_3": {"code": 3, "name": "positive", "emoji": "😊", "color": "#34d399", "bg": "rgba(52, 211, 153, 0.2)", "description": "เชิงบวก"},
65
+ },
66
+
67
 
68
  # Thai Sentiment E5 - 3 classes (negative, neutral, positive)
69
  "ZombitX64/Thai-sentiment-e5": {