Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
| 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)
|