$P@D$3RV£R commited on
Commit
8de6b57
·
1 Parent(s): e262f4a

Standardize HF token environment variable names

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1025,7 +1025,7 @@ def images(f):
1025
  break
1026
 
1027
  # Get HF token for authenticated requests
1028
- hf_token = os.environ.get("HF_TOKEN") or os.environ.get("HUGGINGFACE_HUB_TOKEN")
1029
  if not hf_token:
1030
  try:
1031
  from huggingface_hub import HfApi
@@ -1093,7 +1093,7 @@ def load_from_huggingface_dataset(dataset_name="0001AMA/multimodal_data_annotato
1093
  from huggingface_hub import list_repo_files, hf_hub_download
1094
 
1095
  # Get HF token for authenticated requests
1096
- hf_token = os.environ.get("HF_TOKEN") or os.environ.get("HUGGINGFACE_HUB_TOKEN")
1097
  if not hf_token:
1098
  try:
1099
  from huggingface_hub import HfApi
 
1025
  break
1026
 
1027
  # Get HF token for authenticated requests
1028
+ hf_token = os.getenv("HF_TOKEN") or os.getenv("HUGGING_FACE_HUB_TOKEN")
1029
  if not hf_token:
1030
  try:
1031
  from huggingface_hub import HfApi
 
1093
  from huggingface_hub import list_repo_files, hf_hub_download
1094
 
1095
  # Get HF token for authenticated requests
1096
+ hf_token = os.getenv("HF_TOKEN") or os.getenv("HUGGING_FACE_HUB_TOKEN")
1097
  if not hf_token:
1098
  try:
1099
  from huggingface_hub import HfApi