mskov commited on
Commit
33d11d7
β€’
1 Parent(s): de3f0c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -2,8 +2,10 @@
2
 
3
  from transformers import pipeline
4
 
5
- repository_id="mskov/roberta-base-toxicity"
6
- classifier = pipeline('text-classification',repository_id)
 
 
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)