Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,10 +23,9 @@ from sklearn.neighbors import NearestNeighbors
|
|
| 23 |
import spotipy
|
| 24 |
from spotipy.oauth2 import SpotifyClientCredentials
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 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')
|
|
|
|
| 23 |
import spotipy
|
| 24 |
from spotipy.oauth2 import SpotifyClientCredentials
|
| 25 |
|
| 26 |
+
auth_manager = SpotifyClientCredentials()
|
| 27 |
+
sp = spotipy.Spotify(auth_manager=auth_manager)
|
| 28 |
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
df = pd.read_csv('spotify_data.csv')
|