How kakinachristine/hitsongpredictor works
This repository combines a Flask-based Kenyan/Nigerian song hit predictor with exploratory and presentation-oriented music analytics. The primary web workflow accepts a track ID, retrieves audio features, scores them against thresholds, and displays a hit classification. app.py and app1.py are alternative implementations; MAIN.py is another, less clearly sampled application path. The notebooks and BI artifacts indicate additional analytics work. Source excerpts do not establish how those artifacts are run or connected, so those relationships are omitted; the bundled Bootstrap files are treated as UI dependencies.
Main entry points: app1.py SQLite predictor · app.py In-memory predictor · templates Prediction results · jquery-3.4.0.js jQuery
Components 20
Prediction web apps
- In-memory predictor
app.py - SQLite predictor
app1.py - Legacy predictor
MAIN.py - Feature lookup
app.py - Hit scoring
app1.py - Prediction results
templates - Feedback page
templates/feedback.html
Track data and storage
- Track datasets
Kenya.csv - Nigeria dataset
Naija.csv - Songs database
songs.db - Track database
Track.db
Music analytics
- Prediction analysis
KenyanSongPredictionML.ipynb - Kenya data analysis
Kenya_DF.ipynb - Nigeria data analysis
Naija_DF.ipynb - BI dashboard
presentation/music_analytics/MusicAnalyticsBI.pbix - Analytics report
presentation/MusicAnalytics.pdf
Browser interface
- Bootstrap bundle
static/bootstrap/js/bootstrap.bundle.js - Bootstrap components
static/bootstrap/js/bootstrap.js - jQuery
static/bootstrap/js/jquery-3.4.0.js
Other components
- User
Connections 13
- User → In-memory predictor: submits track
app.py - In-memory predictor → Feature lookup: looks up features
app.py - Feature lookup → Track datasets: queries loaded data
app.py - In-memory predictor → Hit scoring: scores features
app.py - In-memory predictor → Prediction results: renders result
app.py - User → SQLite predictor: submits track
app1.py - SQLite predictor → Songs database: writes track tables
app1.py - SQLite predictor → Hit scoring: scores features
app1.py - SQLite predictor → Prediction results: renders result
app1.py - SQLite predictor → Feedback page: renders page
app1.py - Legacy predictor → Prediction results: renders classification
MAIN.py - Bootstrap bundle → jQuery: requires
static/bootstrap/js/bootstrap.bundle.js - Bootstrap components → jQuery: requires
static/bootstrap/js/bootstrap.js