davidberenstein1957 HF staff commited on
Commit
bddcd7b
1 Parent(s): 71fd9c5

fix: token logic

Browse files
src/distilabel_dataset_generator/utils.py CHANGED
@@ -10,7 +10,7 @@ from gradio.oauth import (
10
  )
11
  from huggingface_hub import whoami
12
 
13
- HF_TOKENS = os.getenv("HF_TOKEN") + [os.getenv(f"HF_TOKEN_{i}") for i in range(1, 10)]
14
  HF_TOKENS = [token for token in HF_TOKENS if token]
15
 
16
  _CHECK_IF_SPACE_IS_SET = (
 
10
  )
11
  from huggingface_hub import whoami
12
 
13
+ HF_TOKENS = [os.getenv("HF_TOKEN")] + [os.getenv(f"HF_TOKEN_{i}") for i in range(1, 10)]
14
  HF_TOKENS = [token for token in HF_TOKENS if token]
15
 
16
  _CHECK_IF_SPACE_IS_SET = (