Abu1998 commited on
Commit
ac19e5b
·
verified ·
1 Parent(s): 715e20a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import os
5
  from huggingface_hub import Repository, HfFolder
6
 
7
  # Store your Hugging Face token securely (avoid hardcoding it in your app.py)
8
- HF_TOKEN = "your_huggingface_token_here" # Make sure to replace this with your Hugging Face token
9
 
10
  # Save Hugging Face token to the Hugging Face folder for authentication
11
  HfFolder.save_token(HF_TOKEN)
 
5
  from huggingface_hub import Repository, HfFolder
6
 
7
  # Store your Hugging Face token securely (avoid hardcoding it in your app.py)
8
+ HF_TOKEN = os.getenv("HF_TOKEN") # Retrieve token from environment variables
9
 
10
  # Save Hugging Face token to the Hugging Face folder for authentication
11
  HfFolder.save_token(HF_TOKEN)