Spaces:
Sleeping
Sleeping
fix: other access way of token
Browse files- src/main.py +1 -1
src/main.py
CHANGED
|
@@ -101,7 +101,7 @@ def push_observation(tab_log:DeltaGenerator=None):
|
|
| 101 |
|
| 102 |
# get huggingface api
|
| 103 |
import os
|
| 104 |
-
token = os.
|
| 105 |
api = HfApi(token=token)
|
| 106 |
|
| 107 |
f = tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False)
|
|
|
|
| 101 |
|
| 102 |
# get huggingface api
|
| 103 |
import os
|
| 104 |
+
token = os.environ.get("HF_TOKEN", None)
|
| 105 |
api = HfApi(token=token)
|
| 106 |
|
| 107 |
f = tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False)
|