List model names filtered by pipeline tag

Hi,

Is there a way to get all the model names for a particular tag programmatically instead of visiting the page (Models - Hugging Face)? Thanks.

For those who stumble into this post, here’s the answer.

You can list all the models and its details by using this method here from huggingface_hub import list_models

Have fun exploring, :hugs:

1 Like

We recently expanded this capability as well! You can read more on the documentation here:

1 Like