Spaces:
Sleeping
Sleeping
Commit ·
805d933
1
Parent(s): b50de9b
Remove hardcoded HF token from upload script
Browse files- upload_to_hf.py +1 -1
upload_to_hf.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from huggingface_hub import HfApi
|
| 2 |
import os
|
| 3 |
|
| 4 |
-
TOKEN = "
|
| 5 |
REPO_ID = "joytheslothh/BacSense-API"
|
| 6 |
REPO_TYPE = "space"
|
| 7 |
|
|
|
|
| 1 |
from huggingface_hub import HfApi
|
| 2 |
import os
|
| 3 |
|
| 4 |
+
TOKEN = os.environ.get("HF_TOKEN", "YOUR_TOKEN_HERE")
|
| 5 |
REPO_ID = "joytheslothh/BacSense-API"
|
| 6 |
REPO_TYPE = "space"
|
| 7 |
|