File size: 578 Bytes
76b8745 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# 🎶 Chord Classifier
A RandomForest-based chord classifier trained on synthetic chord data.
It takes a set of notes (e.g., `"C E G"` or `"Db F Ab"`) and returns the chord label.
- **Model type**: RandomForestClassifier
- **Features**: 12-dim pitch class binary vector
- **Chord types supported**: maj, min, dim, aug, 7, maj7, m7, mMaj7, dim7, m7b5, 6, m6, sus2, sus4
## Usage
```python
from huggingface_hub import InferenceClient
client = InferenceClient("DS553-Music-Bot/chord_classifier", token="YOUR_HF_TOKEN")
print(client.post(inputs="C E G"))
# {'label': 'Cmaj'}
|