Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def match_songs_with_sentiment(user_sentiment_label, user_sentiment_score,inputV
|
|
48 |
return matched_songs.loc[top_5.index, ['song','artist','seq','similarity','sentiment','score']]
|
49 |
|
50 |
|
51 |
-
client_id = os.
|
52 |
-
client_secret = os.
|
53 |
|
54 |
client_credentials_manager = SpotifyClientCredentials(client_id=client_id, client_secret=client_secret)
|
55 |
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
|
|
48 |
return matched_songs.loc[top_5.index, ['song','artist','seq','similarity','sentiment','score']]
|
49 |
|
50 |
|
51 |
+
client_id = os.getenv('client_id')
|
52 |
+
client_secret = os.getenv('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)
|