Feature Request: Be able to search the hub by substring and author
See original GitHub issueHi! Thank you so much for a wonderful API and Hub, I’m finding it super useful with the AdaptNLP project! I do have one request though:
I wrote a wrapper API to make the search results a bit more easy to read and comprehend for users, such as seen below
One issue I’ve come to have though is if I want to search for a model by a substring of its name such as if I search “danish-large”, “flair/ner-danish-large” isn’t returned which would be a very nice quality of life with the search API. Similarly if I try and search for models created by a specific user, the API will simply return nothing. It would be excellent if these features were added!
My method in the meantime is just to download the entire list (ie api.list_modes()
) and filter the results, but it’s far from ideal and memory efficient.
Thank you for all your your hard work!
(IF there is a different API route and flag I should be using rather than what’s used by default, that would be good to know too)
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (10 by maintainers)
Top GitHub Comments
we’ll add a
search
param too soonCheck out #41 which should fit at least part of your use case!