Unggi commited on
Commit
99a4945
1 Parent(s): f5510ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/hate_speech_bert"
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/ko_hate_speech_KcELECTRA" #"Unggi/hate_speech_bert"
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