Spaces:
Sleeping
Sleeping
add app
Browse files
app.py
CHANGED
@@ -14,10 +14,9 @@ model_name_list = [
|
|
14 |
]
|
15 |
|
16 |
model = BertForSequenceClassification.from_pretrained(
|
17 |
-
model_name
|
18 |
-
num_labels=15,
|
19 |
-
problem_type="multi_label_classification"
|
20 |
)
|
|
|
21 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
22 |
|
23 |
unsmile_labels = ["์ฌ์ฑ/๊ฐ์กฑ","๋จ์ฑ","์ฑ์์์","์ธ์ข
/๊ตญ์ ","์ฐ๋ น","์ง์ญ","์ข
๊ต","๊ธฐํ ํ์ค","์
ํ/์์ค","clean", 'name', 'number', 'address', 'bank', 'person']
|
|
|
14 |
]
|
15 |
|
16 |
model = BertForSequenceClassification.from_pretrained(
|
17 |
+
model_name
|
|
|
|
|
18 |
)
|
19 |
+
|
20 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
21 |
|
22 |
unsmile_labels = ["์ฌ์ฑ/๊ฐ์กฑ","๋จ์ฑ","์ฑ์์์","์ธ์ข
/๊ตญ์ ","์ฐ๋ น","์ง์ญ","์ข
๊ต","๊ธฐํ ํ์ค","์
ํ/์์ค","clean", 'name', 'number', 'address', 'bank', 'person']
|