Spaces:
Sleeping
Sleeping
add app
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ model_name_list = [
|
|
14 |
]
|
15 |
|
16 |
model = BertForSequenceClassification.from_pretrained(
|
17 |
-
model_name
|
|
|
18 |
)
|
19 |
|
20 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
14 |
]
|
15 |
|
16 |
model = BertForSequenceClassification.from_pretrained(
|
17 |
+
model_name,
|
18 |
+
num_labels= 15
|
19 |
)
|
20 |
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|