From 11e705ec63ec15ac559c90131cc2bd4bb84dd076 Mon Sep 17 00:00:00 2001 From: Laure Vancau Date: Sat, 21 Dec 2024 14:16:08 +0100 Subject: [PATCH] fix: other access way of token --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 21de299..2193dab 100644 --- a/src/main.py +++ b/src/main.py @@ -101,7 +101,7 @@ def push_observation(tab_log:DeltaGenerator=None): # get huggingface api import os - token = os.getenv("HF_TOKEN") + token = os.environ.get("HF_TOKEN", None) api = HfApi(token=token) f = tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False)