Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import transformers
|
|
9 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
10 |
|
11 |
def load_model(model_name):
|
12 |
-
# model_name = "Unggi/
|
13 |
# model
|
14 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
15 |
# tokenizer..
|
@@ -19,7 +19,7 @@ def load_model(model_name):
|
|
19 |
|
20 |
|
21 |
def inference(prompt):
|
22 |
-
model_name = "Unggi/
|
23 |
|
24 |
model, tokenizer = load_model(
|
25 |
model_name = model_name
|
|
|
9 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
10 |
|
11 |
def load_model(model_name):
|
12 |
+
# model_name = "Unggi/hate_speech_classifier_KcElectra"
|
13 |
# model
|
14 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
15 |
# tokenizer..
|
|
|
19 |
|
20 |
|
21 |
def inference(prompt):
|
22 |
+
model_name = "Unggi/hate_speech_classifier_KcElectra" #"Unggi/hate_speech_bert"
|
23 |
|
24 |
model, tokenizer = load_model(
|
25 |
model_name = model_name
|