Spaces:
Runtime error
Runtime error
Download app.py from tillschwoerer/toxic_comments_classifier: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/tillschwoerer/toxic_comments_classifier/resolve/main/app.py
- Command line
-
hf download hf://spaces/tillschwoerer/toxic_comments_classifier/app.py
-
curl -L -o app.py https://huggingface.co/spaces/tillschwoerer/toxic_comments_classifier/resolve/main/app.py
449 Bytes
| import gradio as gr | |
| gr.load( | |
| name="tillschwoerer/roberta-base-finetuned-toxic-comment-detection", | |
| src="models", | |
| title="Toxic comment detection", | |
| description="Say if the prompt is toxic or not.", | |
| article="Check out the [model repo](https://huggingface.co/tillschwoerer/roberta-base-finetuned-toxic-comments-detection) that this demo is based off of.", | |
| examples=[["I hate you!"], ['I love you!'], ['I am a cat.']], | |
| ).launch() | |