Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,11 @@ from sklearn.neighbors import NearestNeighbors
|
|
23 |
import spotipy
|
24 |
from spotipy.oauth2 import SpotifyClientCredentials
|
25 |
|
|
|
|
|
|
|
|
|
26 |
|
27 |
-
sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials())
|
28 |
|
29 |
df = pd.read_csv('spotify_data.csv')
|
30 |
|
|
|
23 |
import spotipy
|
24 |
from spotipy.oauth2 import SpotifyClientCredentials
|
25 |
|
26 |
+
client_id = os.environ.get("SPOTIPY_CLIENT_ID")
|
27 |
+
client_secret = os.environ.get("SPOTIPY_CLIENT_SECRET")
|
28 |
+
|
29 |
+
sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials(client_id=client_id, client_secret=client_secret))
|
30 |
|
|
|
31 |
|
32 |
df = pd.read_csv('spotify_data.csv')
|
33 |
|