Update pages/01_Recommend_from_Song🎤.py
Browse files
pages/01_Recommend_from_Song🎤.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import spotipy
|
2 |
import streamlit as st
|
|
|
3 |
import numpy as np
|
4 |
from spotipy.oauth2 import SpotifyClientCredentials
|
5 |
from PIL import Image
|
@@ -11,8 +12,8 @@ st.set_page_config(
|
|
11 |
)
|
12 |
|
13 |
# Spotify API
|
14 |
-
SPOTIPY_CLIENT_ID =
|
15 |
-
SPOTIPY_CLIENT_SECRET =
|
16 |
|
17 |
sp = spotipy.Spotify(
|
18 |
auth_manager=SpotifyClientCredentials(
|
|
|
1 |
import spotipy
|
2 |
import streamlit as st
|
3 |
+
import os
|
4 |
import numpy as np
|
5 |
from spotipy.oauth2 import SpotifyClientCredentials
|
6 |
from PIL import Image
|
|
|
12 |
)
|
13 |
|
14 |
# Spotify API
|
15 |
+
SPOTIPY_CLIENT_ID = os.environ.getattribute("CLIENT_ID")
|
16 |
+
SPOTIPY_CLIENT_SECRET = os.environ.getattribute("CLIENT_SECRET")
|
17 |
|
18 |
sp = spotipy.Spotify(
|
19 |
auth_manager=SpotifyClientCredentials(
|