Hub API Discussions
Hello,I’m using theHub client libraryto retrieve information of the repositories (models, datasets and spaces). But I noticed there isn’t an endpoint in theHub APIto retrieve the discussions of the repositories.Is there a way to retrieve this information? If not, is it going to be available soon?Thank you
2022-07-05T16:53:10Z
@ademaitthis is not documented yet (and thus subject to changes), but you can call/api/{models,datasets,spaces}/:namespace?/:repo/discussionsto get discussions from a given repo
2022-07-06T10:29:20Z
There’s also an open PR to add support for this inhuggingface_hub✨ Programmatic API for the community tab by SBrandeis · Pull Request #930 · huggingface/huggingface_hub · GitHub.