Skip to content

Commit

Permalink
fix: other access way of token
Browse files Browse the repository at this point in the history
  • Loading branch information
vancauwe committed Dec 21, 2024
1 parent 8c2fa3e commit 11e705e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11e705e

Please sign in to comment.