From a8918f7a60a5c49981275394068de6b922c978ba Mon Sep 17 00:00:00 2001 From: Parteek Date: Tue, 4 Feb 2025 17:05:04 +0530 Subject: [PATCH] fix tool push to hub (#460) --- src/smolagents/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/tools.py b/src/smolagents/tools.py index 3285efb..4b8c3f3 100644 --- a/src/smolagents/tools.py +++ b/src/smolagents/tools.py @@ -343,7 +343,7 @@ class Tool: 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.