huathedev commited on
Commit
6d39409
·
1 Parent(s): e114bf0

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 = st.secrets.spot_creds.spot_client_id
15
- SPOTIPY_CLIENT_SECRET = st.secrets.spot_creds.spot_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(