Skip to content

Conversation

@balazsthomay
Copy link
Contributor

Resolves #1535

Problem
The CLI called Tool.from_space() was with only one argument, but it requires three: space_id, name, and description.

Solution
Auto-generates missing parameters:

  • name: Extracted from space_id (e.g., "org/model-v1.0" → "model_v1_0")
  • description: "Tool loaded from Hugging Face Space: {space_id}"

@aymeric-roucher aymeric-roucher merged commit 2e66fa0 into huggingface:main Nov 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] CLI fails to load Hugging Face Spaces as tools due to missing required parameters in Tool.from_space()

2 participants