Spaces:
Sleeping
Sleeping
title: Finbert Sentiment | |
emoji: 🐢 | |
colorFrom: indigo | |
colorTo: green | |
sdk: docker | |
pinned: false | |
license: mit | |
# Stock Sentiment Analysis API | |
This is a FastAPI-based sentiment analysis API using FinBERT trained for stock-related news. | |
## How to Use | |
- **Endpoint**: `/predict` | |
- **Method**: `POST` | |
- **Input**: JSON with a `text` field (stock-related text) | |
- **Output**: JSON with `"sentiment"` (Positive, Neutral, or Negative) | |
Example request: | |
```bash | |
curl -X POST "https://your-huggingface-space-url/predict" -H "Content-Type: application/json" -d '{"text": "Apple stock is rising today!"}' | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |