Alibrown commited on
Commit
bb0d65c
Β·
verified Β·
1 Parent(s): 9907307

Update _app.py

Browse files
Files changed (1) hide show
  1. _app.py +2 -2
_app.py CHANGED
@@ -8,10 +8,10 @@ import paramiko
8
  from huggingface_hub import login
9
 
10
  # Hugging Face Token
11
- HF_TOKEN = os.getenv('HUGGING_FACE_HUB_TOKEN', '').strip()
12
 
13
  if not HF_TOKEN:
14
- raise ValueError("HUGGING_FACE_HUB_TOKEN is not set. Please set the token as an environment variable.")
15
 
16
  # Hugging Face Login
17
  login(token=HF_TOKEN)
 
8
  from huggingface_hub import login
9
 
10
  # Hugging Face Token
11
+ HF_TOKEN = os.getenv('HF_TOKEN', '').strip()
12
 
13
  if not HF_TOKEN:
14
+ raise ValueError("HUGGING_TOKEN is not set. Please set the token as an environment variable.")
15
 
16
  # Hugging Face Login
17
  login(token=HF_TOKEN)