Andre commited on
Commit
d0fe6ef
·
1 Parent(s): a77822b
Files changed (1) hide show
  1. config.py +4 -4
config.py CHANGED
@@ -4,12 +4,12 @@ import os
4
  ##
5
 
6
  # Retrieve the Hugging Face token
7
- try:
8
  # Try to get the token from Colab secrets
9
- api_token = userdata.get("HF_CTB_TOKEN")
10
- except ImportError:
11
  # Fall back to environment variable (for local execution)
12
- api_token = os.getenv("HF_CTB_TOKEN")
13
 
14
  # Debugging: Check if the Hugging Face token is available
15
  if not api_token:
 
4
  ##
5
 
6
  # Retrieve the Hugging Face token
7
+ #try:
8
  # Try to get the token from Colab secrets
9
+ # api_token = userdata.get("HF_CTB_TOKEN")
10
+ #except ImportError:
11
  # Fall back to environment variable (for local execution)
12
+ api_token = os.getenv("HF_CTB_TOKEN")
13
 
14
  # Debugging: Check if the Hugging Face token is available
15
  if not api_token: