Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,10 @@
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
|
6 |
-
classifier = pipeline('text-classification',
|
|
|
|
|
7 |
|
8 |
text = "Kederis proclaims innocence Olympic champion Kostas Kederis today left hospital ahead of his date with IOC inquisitors claiming his innocence and vowing: quot;After the crucifixion comes the resurrection. quot; .."
|
9 |
result = classifier(text)
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
|
6 |
+
# classifier = pipeline('text-classification', model="mskov/roberta-base-toxicity")
|
7 |
+
|
8 |
+
classifier = pipeline(model="mskov/roberta-base-toxicity")
|
9 |
|
10 |
text = "Kederis proclaims innocence Olympic champion Kostas Kederis today left hospital ahead of his date with IOC inquisitors claiming his innocence and vowing: quot;After the crucifixion comes the resurrection. quot; .."
|
11 |
result = classifier(text)
|