Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import re
|
|
5 |
import torch
|
6 |
|
7 |
tokenizer = BertTokenizer.from_pretrained(r'./model')
|
8 |
-
model = BertForSequenceClassification.from_pretrained(r'./model', num_labels = 6)
|
9 |
|
10 |
labels = ['伤感', '快乐', '励志', '宣泄', '平静', '感人']
|
11 |
|
|
|
5 |
import torch
|
6 |
|
7 |
tokenizer = BertTokenizer.from_pretrained(r'./model')
|
8 |
+
model = BertForSequenceClassification.from_pretrained(r'./model', num_labels = 6)
|
9 |
|
10 |
labels = ['伤感', '快乐', '励志', '宣泄', '平静', '感人']
|
11 |
|