fix tool push to hub (#460)

This commit is contained in:
Parteek 2025-02-04 17:05:04 +05:30 committed by GitHub
parent a6d2cdaaef
commit a8918f7a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.