Andre commited on
Commit
6cb74a2
·
1 Parent(s): 7eca584

“Update”

Browse files
Files changed (2) hide show
  1. config/config.py +2 -2
  2. config/config_colab.py +1 -1
config/config.py CHANGED
@@ -4,11 +4,11 @@ from config.prompts import prompts # Import prompts from prompts.py
4
  from config.models import models
5
 
6
  # Retrieve the Hugging Face token
7
- api_token = os.getenv("HF_CTB_TOKEN")
8
 
9
  # Debugging: Check if the Hugging Face token is available
10
  if not api_token:
11
- print("ERRORupdated: Hugging Face token (HF_CTB_TOKEN) is missing. Please set it as an environment variable or in Colab secrets.")
12
  else:
13
  print("Hugging Face token loaded successfully.")
14
 
 
4
  from config.models import models
5
 
6
  # Retrieve the Hugging Face token
7
+ api_token = os.getenv("HF_TOKEN")
8
 
9
  # Debugging: Check if the Hugging Face token is available
10
  if not api_token:
11
+ print("ERROR: Hugging Face token (HF_TOKEN) is missing. Please set it as an environment variable or in Colab secrets.")
12
  else:
13
  print("Hugging Face token loaded successfully.")
14
 
config/config_colab.py CHANGED
@@ -3,7 +3,7 @@ from google.colab import userdata
3
  from config.prompts import prompts # Import prompts from prompts.py
4
 
5
  # Retrieve the Hugging Face token from Colab secrets
6
- api_token = userdata.get("HF_CTB_TOKEN")
7
 
8
  # Debugging: Check if the Hugging Face token is available
9
  if not api_token:
 
3
  from config.prompts import prompts # Import prompts from prompts.py
4
 
5
  # Retrieve the Hugging Face token from Colab secrets
6
+ api_token = userdata.get("HF_TOKEN")
7
 
8
  # Debugging: Check if the Hugging Face token is available
9
  if not api_token: