File size: 701 Bytes
cd45e14
 
 
 
 
 
 
 
 
7a64d44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cd45e14
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
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