File size: 2,857 Bytes
5a4f9d5
 
4c15dca
dc99bbe
 
5a4f9d5
 
 
 
 
 
 
4c15dca
 
 
 
 
 
 
 
dc99bbe
4c15dca
 
 
 
 
dc99bbe
4c15dca
 
 
 
 
7d6d570
4c15dca
 
 
bd601e3
07afe6e
4c15dca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
061aef3
dc99bbe
4c15dca
 
 
 
 
 
 
 
 
 
 
 
0f5c939
4c15dca
 
 
 
 
 
 
 
061aef3
4c15dca
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
title: Copyright Purpose Song Recommender
emoji: πŸš€
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.24.0
app_file: app.py
pinned: false
short_description: AI-powered song recommendation engine for copyright purpose.
---

# 🎧 AI-Powered Song Recommender for Creative Projects

Welcome to the **Copyrighted-Purpose Song Recommender** β€” an intelligent assistant that helps you find the perfect song for your project using natural language.

Whether you're working on:
- 🎬 a cinematic scene
- πŸ“± a viral social media video
- πŸ“’ a brand campaign
- πŸ’” an emotional film
- etc etc

This app will analyze your needs and recommend songs using real music intelligence powered by:
- **Spotify audio features** (valence, energy, tempo, danceability, etc.)
- **YouTube metadata** (likes, comments, views)
- **LLM parsing** (DeepSeek LLM for production, and still on research for compatible CPU model in HF demo.)

---

## πŸ’‘ How It Works

1. **Describe your project** in natural language (e.g. _"I want a sad, emotional breakup song for a scene for a K-drama"_).
2. The system **extracts structured intent** like mood, tempo, genre, etc.
3. Songs are recommended from our catalog based on matching features.
4. βœ… You can give feedback (πŸ‘/πŸ‘Ž) and export the results.
5. As an overview of the outcome, go to notebook.ipynb -> 4.2 Temporary result
![alt text](https://github.com/shavirazh/copyright-purpose-song-recommender/blob/main/result_overview.png?raw=true)

---

## ✨ Features

- 🎼 **Valence + Danceability mood filtering**
- πŸ” **Reference song similarity matching**
- πŸ“Š **YouTube popularity sorting**
- 🧠 **LLM-powered input parsing**
- πŸ’¬ **Feedback logging with export**
- πŸ“ **Downloadable CSV for results & feedback**

---

## πŸš€ Try It Now

1. Enter a description of your scene or campaign
2. Click **πŸ” Recommend Songs**
3. Optionally give feedback or export results

---

## πŸ› οΈ Built With

- `Gradio` – UI
- `Transformers` – LLM model loading
- `LangChain` – for prompt templates and parsing
- `Pandas` – data filtering and exporting
- `DeepSeek LLM 7B Chat` – for input parsing (production)
- This space is using compatible model for CPU, yet still on research the best model.

---

## πŸ“‚ About the Dataset

- The song catalog includes audio features from Spotify and engagement stats from YouTube.
- You can modify or expand this dataset in your fork.

---

## πŸ™ Credits

Developed by Shavira Z (personal project), for use in music publishing song user/clients.

---

## πŸ“¬ Feedback or Suggestions?

Feel free to reach out or leave an issue. We’re happy to collaborate or improve this experience!

Email: [email protected]

LinkedIn: https://linkedin.com/in/shavirazh

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference