nppmatt commited on
Commit
c4005a2
1 Parent(s): 7ccc2c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -30,3 +30,6 @@ else:
30
  modelPath = "s-nlp/roberta_toxicity_classifier"
31
  neutralIndex = 0
32
  toxicIndex = 1
 
 
 
 
30
  modelPath = "s-nlp/roberta_toxicity_classifier"
31
  neutralIndex = 0
32
  toxicIndex = 1
33
+
34
+ tokenizer = AutoTokenizer.from_pretrained(tokenizerPath)
35
+ model = AutoModelForSequenceClassification.from_pretrained(modelPath)