derek-thomas HF staff commited on
Commit
47ad458
1 Parent(s): 83f6dc4

Updating to HF_TOKEN

Browse files
main.py CHANGED
@@ -21,7 +21,7 @@ if frequency not in ["daily", "hourly"]:
21
  raise ValueError("FREQUENCY environment variable must be 'daily' or 'hourly'")
22
 
23
  # Authenticate with Hugging Face using an auth token
24
- auth_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
25
 
26
  logger = setup_logger(__name__)
27
 
 
21
  raise ValueError("FREQUENCY environment variable must be 'daily' or 'hourly'")
22
 
23
  # Authenticate with Hugging Face using an auth token
24
+ auth_token = os.environ["HF_TOKEN"]
25
 
26
  logger = setup_logger(__name__)
27
 
utilities/readme_update.py CHANGED
@@ -9,7 +9,7 @@ from huggingface_hub import HfApi, Repository
9
  frequency = os.environ.get("FREQUENCY", '').lower()
10
  GENERATED_BELOW_MARKER = "--- Generated Part of README Below ---"
11
  username = os.environ["USERNAME"]
12
- hf_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
13
  local_repo_path = "./readme_repo"
14
 
15
 
 
9
  frequency = os.environ.get("FREQUENCY", '').lower()
10
  GENERATED_BELOW_MARKER = "--- Generated Part of README Below ---"
11
  username = os.environ["USERNAME"]
12
+ hf_token = os.environ["HF_TOKEN"]
13
  local_repo_path = "./readme_repo"
14
 
15
 
utilities/user_defined_functions.py CHANGED
@@ -21,7 +21,7 @@ if frequency not in ["daily", "hourly"]:
21
  raise ValueError("FREQUENCY environment variable must be 'daily' or 'hourly'")
22
 
23
  # Authenticate with Hugging Face using an auth token
24
- auth_token = os.environ["HUGGINGFACE_AUTH_TOKEN"]
25
  login(auth_token, add_to_git_credential=True)
26
 
27
  logger = setup_logger(__name__)
 
21
  raise ValueError("FREQUENCY environment variable must be 'daily' or 'hourly'")
22
 
23
  # Authenticate with Hugging Face using an auth token
24
+ auth_token = os.environ["HF_TOKEN"]
25
  login(auth_token, add_to_git_credential=True)
26
 
27
  logger = setup_logger(__name__)