Instructions to use AndyJamesTurner/suicideDetector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use AndyJamesTurner/suicideDetector with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("AndyJamesTurner/suicideDetector", "model.pkl") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Download config.json from AndyJamesTurner/suicideDetector: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/AndyJamesTurner/suicideDetector/resolve/fcbc617caa2474433921794de2f7dabb57b1fdf6/config.json
- Command line
-
hf download hf://AndyJamesTurner/suicideDetector@fcbc617caa2474433921794de2f7dabb57b1fdf6/config.json
-
curl -L -o config.json https://huggingface.co/AndyJamesTurner/suicideDetector/resolve/fcbc617caa2474433921794de2f7dabb57b1fdf6/config.json
1.54 kB
| { | |
| "sklearn": { | |
| "environment": [ | |
| "scikit-learn=1.4.2", | |
| "xgboost=2.0.3" | |
| ], | |
| "example_input": { | |
| "data": [ | |
| "I Don't know?7? Months self harm free and the urge just gets stronger and stronger every day. The past few days I've just been shit... \nMy family stresses me out especially my nephew (he's 12) My mum has full custody of him and he's told me to go kill myself numerous times.. I wish it was that easy.\nMy partners family stresses me out especially over the past few days. \nStress is my trigger \nI just want to scream and cry. \nI live near the woods so I could go out and scream till I can't possibly scream anymore but the cops will probably get called...\nMy OH knows about my depression but he doesn't really know how I'm feeling at the moment. He would want to come over and make sure I'm OK but he's fucking annoying. He annoys me all the time by doing small stupid things. \nI don't even know where I'm going with the post? \n\n", | |
| "I HAVE TO START BECOMING RICH I HAVE TO START MY COMPANY SO WHEN I BECOME 16 I CAN AFFORD A BIG VAN AND GO ON TRIPS WITH MY FRIENDS BUT I HAVE NO TIME LEFT I HAVE TO START WORKING", | |
| "A poem (haiku) for u/Me-Game-Dev hi, hello hello\nstop fucking saying hello\ni know where you live" | |
| ] | |
| }, | |
| "model": { | |
| "file": "model.pkl" | |
| }, | |
| "model_format": "pickle", | |
| "task": "text-classification", | |
| "use_intelex": false | |
| } | |
| } |