Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add list_spaces #881

Closed
osanseviero opened this issue May 23, 2022 · 3 comments · Fixed by #889
Closed

Add list_spaces #881

osanseviero opened this issue May 23, 2022 · 3 comments · Fixed by #889
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@osanseviero
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Allow users listing spaces similar to how they can list models and datasets

We can use something like this for example

HF_LIST_ENDPOINT = HF_ENDPOINT + "/api/spaces?filter={type}"
r = requests.get(HF_LIST_ENDPOINT.format(type=type))
r.raise_for_status()
d = r.json()

cc @lvwerra

@LysandreJik
Copy link
Member

Indeed, should be simple to add! I've added some labels, happy to review a PR! :)

@cakiki
Copy link
Contributor

cakiki commented May 27, 2022

I'd like to work on this!

@osanseviero
Copy link
Contributor Author

Sounds good! Feel free to open a PR for this and let us know if you have any questions 🔥

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants