Spaces:
Sleeping
Sleeping
Download app.py from DavidMbx/moderation: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/DavidMbx/moderation/resolve/main/app.py
- Command line
-
hf download hf://spaces/DavidMbx/moderation/app.py
-
curl -L -o app.py https://huggingface.co/spaces/DavidMbx/moderation/resolve/main/app.py
175 Bytes
| from detoxify import Detoxify | |
| import streamlit as st | |
| input = st.text_area('Enter a sentence') | |
| if input: | |
| results = Detoxify('original').predict(input) | |
| st.json(results) |