Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,11 @@ import re
|
|
9 |
import unicodedata
|
10 |
import requests
|
11 |
import uuid
|
|
|
12 |
|
13 |
# Spotify API credentials
|
14 |
-
SPOTIPY_CLIENT_ID =
|
15 |
-
SPOTIPY_CLIENT_SECRET =
|
16 |
SPOTIPY_REDIRECT_URI = 'http://localhost:8501/'
|
17 |
SCOPE = 'user-library-read'
|
18 |
CACHE_PATH = '.spotifycache'
|
|
|
9 |
import unicodedata
|
10 |
import requests
|
11 |
import uuid
|
12 |
+
import os
|
13 |
|
14 |
# Spotify API credentials
|
15 |
+
SPOTIPY_CLIENT_ID = os.getenv("SPOTIPY_CLIENT_ID")
|
16 |
+
SPOTIPY_CLIENT_SECRET = os.getenv("SPOTIPY_CLIENT_SECRET")
|
17 |
SPOTIPY_REDIRECT_URI = 'http://localhost:8501/'
|
18 |
SCOPE = 'user-library-read'
|
19 |
CACHE_PATH = '.spotifycache'
|