Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,7 @@
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
|
| 6 |
-
|
| 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; .."
|