Instructions to use mstrasser/jeff-adapter-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mstrasser/jeff-adapter-emotion with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Download example.json from mstrasser/jeff-adapter-emotion: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/mstrasser/jeff-adapter-emotion/resolve/main/example.json
- Command line
-
hf download hf://mstrasser/jeff-adapter-emotion/example.json
-
curl -L -o example.json https://huggingface.co/mstrasser/jeff-adapter-emotion/resolve/main/example.json
1.22 kB
| { | |
| "model": "emotion", | |
| "state": { | |
| "source": "Reddit comment ([NAME] and [RELIGION] replace removed names)", | |
| "comment": "Thanks so much for the tip, I had no idea the library lent out tools. Saved me a fortune." | |
| }, | |
| "questions": { | |
| "emotion": { | |
| "type": "choice", | |
| "instructions": "Which emotion does the comment express most? Choose the emotion that is strongest in the comment, or neutral if it expresses no particular emotion.", | |
| "criteria": { | |
| "gratitude": "Gratitude: feeling thankful or appreciative.", | |
| "joy": "Joy: a feeling of pleasure and happiness.", | |
| "surprise": "Surprise: being astonished or startled by something unexpected.", | |
| "realization": "Realization: becoming aware of something.", | |
| "admiration": "Admiration: finding something impressive or worthy of respect.", | |
| "relief": "Relief: reassurance and relaxation after anxiety or distress ends.", | |
| "annoyance": "Annoyance: mild anger or irritation.", | |
| "confusion": "Confusion: lack of understanding or uncertainty.", | |
| "sadness": "Sadness: feeling sorrow or unhappiness.", | |
| "neutral": "Neutral: no particular emotion is expressed." | |
| } | |
| } | |
| } | |
| } | |