Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|