Skip to content

Commit

Permalink
fix tool push to hub (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
keetrap authored Feb 4, 2025
1 parent a6d2cda commit a8918f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smolagents/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a8918f7

Please sign in to comment.