WJL110 commited on
Commit
431a71c
·
verified ·
1 Parent(s): b388f27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ classifier = pipeline("text-classification", model="WJL110/emotion-classifier")
11
 
12
  # 2. 定义标签映射,将模型输出的 LABEL_0 等转换为更友好的中文标签
13
  label_map = {
14
- "LABEL_0": "愤怒",
15
- "LABEL_1": "快乐",
16
  "LABEL_2": "悲伤"
17
  }
18
 
 
11
 
12
  # 2. 定义标签映射,将模型输出的 LABEL_0 等转换为更友好的中文标签
13
  label_map = {
14
+ "LABEL_0": "快乐",
15
+ "LABEL_1": "愤怒",
16
  "LABEL_2": "悲伤"
17
  }
18