mskov commited on
Commit
7e8d389
Β·
1 Parent(s): 33d11d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -3,8 +3,7 @@
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; .."
 
3
  from transformers import pipeline
4
 
5
 
6
+ classifier = pipeline(task="zero-shot-audio-classification", model="mskov/roberta-base-toxicity")
 
7
  classifier = pipeline(model="mskov/roberta-base-toxicity")
8
 
9
  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; .."