Update MT.py
Browse files
MT.py
CHANGED
@@ -8,7 +8,7 @@ client_secret = 'c0f56895d29f434cbeac4309d0b42d05'
|
|
8 |
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
|
9 |
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
10 |
|
11 |
-
def
|
12 |
# Define a mapping of emotions to search keywords
|
13 |
emotion_keywords = {
|
14 |
"neutral": ["raga des sarangi", "raga malkauns", "raga bhairav", "raga rageshri"],
|
|
|
8 |
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
|
9 |
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
10 |
|
11 |
+
def get_music(emotion):
|
12 |
# Define a mapping of emotions to search keywords
|
13 |
emotion_keywords = {
|
14 |
"neutral": ["raga des sarangi", "raga malkauns", "raga bhairav", "raga rageshri"],
|