Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,9 @@ def match_songs_with_sentiment(user_sentiment_label, user_sentiment_score,inputV
|
|
47 |
# Select the top five songs and return
|
48 |
return matched_songs.loc[top_5.index, ['song','artist','seq','similarity','sentiment','score']]
|
49 |
|
50 |
-
|
51 |
-
|
|
|
52 |
|
53 |
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
|
54 |
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
|
|
47 |
# Select the top five songs and return
|
48 |
return matched_songs.loc[top_5.index, ['song','artist','seq','similarity','sentiment','score']]
|
49 |
|
50 |
+
|
51 |
+
client_id = os.environ['client_id']
|
52 |
+
client_secret = os.environ['client_secret']
|
53 |
|
54 |
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
|
55 |
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|