diff --git a/src/smolagents/tools.py b/src/smolagents/tools.py index 3285efb72..4b8c3f36e 100644 --- a/src/smolagents/tools.py +++ b/src/smolagents/tools.py @@ -343,7 +343,7 @@ def push_to_hub( space_sdk="gradio", ) repo_id = repo_url.repo_id - metadata_update(repo_id, {"tags": ["tool"]}, repo_type="space") + metadata_update(repo_id, {"tags": ["tool"]}, repo_type="space", token=token) with tempfile.TemporaryDirectory() as work_dir: # Save all files.