IshmamF commited on
Commit
985a585
·
1 Parent(s): 0b7b671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- client_id = os.environ.get('client_id')
51
- client_secret = os.environ.get('client_secret')
 
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)