Spaces:
Runtime error
Runtime error
| title: Sentiment Classification API | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| # Route C β BERTweet-large Sentiment API | |
| Three-class sentiment classifier (`-1` negative, `0` neutral, `1` positive) | |
| served via Flask + gunicorn on Hugging Face Spaces. | |
| - Model: fine-tuned `vinai/bertweet-large`, weights stored fp16 (up-cast to | |
| fp32 at CPU load time). | |
| - Wrapper classes: `sentiment_deploy.py` (`BertweetVectorizer`, | |
| `BertweetClassifier`). | |
| POST a batch to `/`: | |
| ``` | |
| curl -d '{"items":[{"id":"test","text":"I love this!"}]}' \ | |
| -H "Content-Type: application/json" -X POST <space-url> | jq | |
| ``` | |