TutuAwad commited on
Commit
bd985d7
·
verified ·
1 Parent(s): c4e20d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -36,9 +36,13 @@ index = faiss.read_index(INDEX_PATH)
36
 
37
  HF_TOKEN = os.getenv("HF_TOKEN")
38
 
39
- # HF Space secrets should be named SPOTIPY_CLIENT_ID / SPOTIPY_CLIENT_SECRET
40
  SPOTIFY_CLIENT_ID = os.getenv("SPOTIPY_CLIENT_ID")
41
  SPOTIFY_CLIENT_SECRET = os.getenv("SPOTIPY_CLIENT_SECRET")
 
 
 
 
 
42
 
43
  # ---------- Models ----------
44
 
@@ -68,6 +72,7 @@ if SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET:
68
  except Exception as e:
69
  print("⚠️ Could not initialize Spotify client:", repr(e))
70
  sp = None
 
71
 
72
  # ---------- Core helpers ----------
73
 
 
36
 
37
  HF_TOKEN = os.getenv("HF_TOKEN")
38
 
 
39
  SPOTIFY_CLIENT_ID = os.getenv("SPOTIPY_CLIENT_ID")
40
  SPOTIFY_CLIENT_SECRET = os.getenv("SPOTIPY_CLIENT_SECRET")
41
+ print("HF token present?", bool(HF_TOKEN))
42
+ print("Spotify ID present?", bool(SPOTIFY_CLIENT_ID))
43
+ print("Spotify secret present?", bool(SPOTIFY_CLIENT_SECRET))
44
+
45
+
46
 
47
  # ---------- Models ----------
48
 
 
72
  except Exception as e:
73
  print("⚠️ Could not initialize Spotify client:", repr(e))
74
  sp = None
75
+ print("Spotify client created?", sp is not None)
76
 
77
  # ---------- Core helpers ----------
78