mtyrrell commited on
Commit
8eb3c54
·
1 Parent(s): 4296589

ts authentication

Browse files
Files changed (1) hide show
  1. app/main.py +3 -0
app/main.py CHANGED
@@ -21,6 +21,9 @@ hf_token = os.getenv('HF_TOKEN')
21
  if not hf_token:
22
  raise ValueError("HF_TOKEN environment variable not found. Please set it in Space secrets.")
23
 
 
 
 
24
  # WHISP API configuration
25
  WHISP_API_URL = config.get('whisp', 'WHISP_API_URL', fallback="https://giz-chatfed-whisp.hf.space/")
26
 
 
21
  if not hf_token:
22
  raise ValueError("HF_TOKEN environment variable not found. Please set it in Space secrets.")
23
 
24
+ else:
25
+ logger.info("HF_TOKEN environment variable found.")
26
+
27
  # WHISP API configuration
28
  WHISP_API_URL = config.get('whisp', 'WHISP_API_URL', fallback="https://giz-chatfed-whisp.hf.space/")
29