Rahatara commited on
Commit
285d0ef
·
verified ·
1 Parent(s): 04cdfa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ from huggingface_hub import login, HfApi
24
 
25
  # Authenticate using the Hugging Face token stored as a secret
26
  def authenticate_hf():
27
- token = os.getenv("HUGGINGFACE_TOKEN")
28
  if not token:
29
  raise ValueError("Hugging Face token not found in environment variables.")
30
 
 
24
 
25
  # Authenticate using the Hugging Face token stored as a secret
26
  def authenticate_hf():
27
+ token = os.getenv(HF)
28
  if not token:
29
  raise ValueError("Hugging Face token not found in environment variables.")
30