chord_classifier / README.md
kshahnathwani's picture
Create README.md
76b8745 verified
# 🎶 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'}