AI-Powered Semantic Music Recommendation for Creators
Live Demo: https://dufy.onrender.com/
DuFy is an AI-powered music recommendation system designed to help video editors and content creators discover songs using natural, descriptive queries instead of rigid genre tags.
Rather than relying on traditional metadata filters, DuFy transforms lyrics and contextual descriptions into semantic vector embeddings, enabling mood-aware and theme-based music search.
- Converts song lyrics and metadata into PyTorch-based embeddings
- Uses semantic similarity search (FAISS) to match user queries
- Fetches trending Spotify tracks via API integration
- Exposes REST endpoints (
/api/recommend/,/api/trending/) - Delivers fast, scalable recommendations using Django + Redis caching
- Curated dataset with enriched song descriptions
- NLP embedding generation using Transformers
- Vector storage and similarity search via FAISS
- Ranked recommendations returned through API
The system is currently trained on a curated embedding file (music_embeddings.pt), with a long-term vision of automating music ingestion and description generation at scale.
Backend: Django, Django REST Framework
AI/NLP: PyTorch, Sentence Transformers, Hugging Face Transformers
Search: FAISS
Database: SQLite / PostgreSQL
Infrastructure: Render
Frontend: HTML, Tailwind CSS, Bootstrap
git clone https://github.com/preeyankakc037/Dufyy.git
cd DufyyCreate virtual environment:
python -m venv venv
# Linux/Mac
source venv/bin/activate
# Windows
venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtSet environment variables:
export DJANGO_SECRET_KEY="your_secret_key"
export SPOTIFY_CLIENT_ID="your_spotify_client_id"
export SPOTIFY_CLIENT_SECRET="your_spotify_client_secret"Run server:
python manage.py migrate
python manage.py runserver- Designed specifically for video editors and short-form creators
- Uses semantic search instead of genre filtering
- Focuses on real-world descriptive queries
- Built with scalability in mind despite deployment constraints
- Research-driven development with iterative experimentation
DuFy is an early but meaningful step toward fully automated, intelligent music discovery.


