Space Using The Model

Is there a way to find all the app URLs (Spaces) that use a specific model? I’m asking for research purposes. I came across a similar question in another post but couldn’t find a solution.

Thanks in advance for any help!

1 Like

app URLs (Spaces) that use a specific model?

It’s easy when you can narrow it down to one model (or few models).

# pip install -U huggingface_hub
from huggingface_hub import HfApi
api = HfApi()
model_id = "openai/whisper-large-v3"  # example
spaces = api.list_spaces(models=model_id)
space_ids = [f"https://huggingface.co/spaces/{s.id}" for s in spaces]
print(space_ids) # ['https://huggingface.co/spaces/openai/whisper', 'https://huggingface.co/spaces/hf-audio/whisper-large-v3',...
1 Like

Unfortunately, Hugging Face doesn’t have a direct “search spaces by model” feature yet, but there are some simple workarounds, but you can do a quick Google search or check the model’s page directly to find examples, check it out

  1. Go to Google and search: "your-model-name" site:huggingface.co/space.This will show Spaces that mention your specific model.
1 Like

Thanks so much for providing the code! It works very well!

2 Likes

Thank you for the reply!

2 Likes