Search for models using various filters. Returns a tibble of matching models.
Usage
hf_search_models(
search = NULL,
task = NULL,
author = NULL,
language = NULL,
library = NULL,
tags = NULL,
sort = "downloads",
direction = "desc",
limit = 30,
token = NULL
)Arguments
- search
Character string. Search query to filter models.
- task
Character string. Filter by task (e.g., "text-classification").
Character string. Filter by model author/organization.
- language
Character string. Filter by language (e.g., "en").
- library
Character string. Filter by library (e.g., "pytorch", "transformers").
Character vector. Filter by tags.
- sort
Character string. Sort by field: "downloads", "likes", "created", "updated". Default: "downloads".
- direction
Character string. Sort direction: "asc" or "desc". Default: "desc".
- limit
Integer. Maximum number of models to return. Default: 30.
- token
Character string or NULL. API token for authentication.