Harshil07 commited on
Commit
a92b65a
·
verified ·
1 Parent(s): d0f997c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ from huggingface_hub import login, list_repo_files, hf_hub_download
26
  # ----------------------------------------------------------------------
27
  # Auth (Space secret) -- gated checkpoint download needs this at startup.
28
  # ----------------------------------------------------------------------
29
- HF_TOKEN = os.environ.get("HF_TOKEN")
30
  if HF_TOKEN:
31
  login(token=HF_TOKEN)
32
  print("Logged in to Hugging Face using HF_TOKEN secret.")
 
26
  # ----------------------------------------------------------------------
27
  # Auth (Space secret) -- gated checkpoint download needs this at startup.
28
  # ----------------------------------------------------------------------
29
+ HF_TOKEN = os.environ.get("hf_token")
30
  if HF_TOKEN:
31
  login(token=HF_TOKEN)
32
  print("Logged in to Hugging Face using HF_TOKEN secret.")