tecuts commited on
Commit
8c47f81
·
verified ·
1 Parent(s): 6f8785a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -15,7 +15,13 @@ import gc # Import the garbage collector module
15
  # Constants
16
  BASE_URL = 'https://tecuts-request.hf.space'
17
  BASE = 'https://www.qobuz.com/api.json/0.2/'
18
- TOKEN = 'yn-HVbPSnrnLazYtBbhTNCHpny-JcyE5LqrHkJnLiv047BJO2SxS_lmDVVN6UnqLv4EvA_5F-lHGY56hIgpfJg'
 
 
 
 
 
 
19
  APP_ID = '579939560'
20
 
21
  # Custom Headers
 
15
  # Constants
16
  BASE_URL = 'https://tecuts-request.hf.space'
17
  BASE = 'https://www.qobuz.com/api.json/0.2/'
18
+ try:
19
+ load_dotenv()
20
+ TOEKN = os.getenv('TOKEN')
21
+ if not TOKEN:
22
+ logging.error(f"no token found")
23
+ TOKEN = None
24
+
25
  APP_ID = '579939560'
26
 
27
  # Custom Headers