Spaces:
Runtime error
Runtime error
typo
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ defaultTxt = "I hate you cancerous insects so much"
|
|
10 |
txt = st.text_area("Text to analyze", defaultTxt)
|
11 |
|
12 |
# Load tokenizer and model weights, try to default to RoBERTa.
|
13 |
-
|
14 |
case RoBERTa:
|
15 |
tokenizerPath = "s-nlp/roberta_toxicity_classifier"
|
16 |
modelPath = "s-nlp/roberta_toxicity_classifier"
|
|
|
10 |
txt = st.text_area("Text to analyze", defaultTxt)
|
11 |
|
12 |
# Load tokenizer and model weights, try to default to RoBERTa.
|
13 |
+
match option:
|
14 |
case RoBERTa:
|
15 |
tokenizerPath = "s-nlp/roberta_toxicity_classifier"
|
16 |
modelPath = "s-nlp/roberta_toxicity_classifier"
|