juliensimon/song-lyrics
12
Song Lyrics Genre Classifier
Paste song lyrics and predict their musical genre using a fine-tuned transformer model. Returns the top 3 most likely genres with confidence scores.
<p align="center"> <img src="https://img.shields.io/badge/Task-Text%20Classification-blue" alt="Text Classification"> <img src="https://img.shields.io/badge/Training-AutoNLP-green" alt="AutoNLP"> <img src="https://img.shields.io/badge/SDK-Gradio-orange" alt="Gradio"> </p>
How It Works
- Paste song lyrics into the text box
- The model analyzes vocabulary, themes, and writing style
- Get the top 3 predicted genres with confidence percentages
Example output: "These lyrics are 72.34% Rock, 15.21% Pop and 8.45% Country."
Model
Tech Stack
- Transformers: Sequence classification with softmax scoring
- PyTorch: Inference backend
- Gradio: Web interface
Run Locally
git clone https://huggingface.co/spaces/juliensimon/song-lyrics
cd song-lyrics
pip install -r requirements.txt
python app.py