-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search by authors and string #531
Search by authors and string #531
Conversation
…hini/huggingface_hub into search-by-authors
The |
Co-authored-by: Julien Chaumond <julien@huggingface.co>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this!
I saw your note about some git issues, try accepting my suggestions in the review and that should handle it just fine.
I also have a few suggestions in there
…hini/huggingface_hub into search-by-authors
Co-authored-by: Zachary Mueller <muellerzr@gmail.com>
Co-authored-by: Zachary Mueller <muellerzr@gmail.com>
Changed the signature and the logic of |
Co-authored-by: Zachary Mueller <muellerzr@gmail.com>
Co-authored-by: Zachary Mueller <muellerzr@gmail.com>
Hi @muellerzr , I've included your commits, thank you for helping me out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've included the changes
LGTM but i'll let @muellerzr and @LysandreJik chime in! |
@FrancescoSaverioZuppichini looks like you're not passing the code quality tests, can you do the following please? :) pip install -U black isort flake8 And then from the root of the repository: make style; make quality That should make the quality tests pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks @FrancescoSaverioZuppichini!
Why
Searching by
authors
andsearch
(so just a string) is currently missing, linked to #513How
I've edited the logic inside
hf_api.HfApi.list_models
. Pasted below for convenience[EDIT] After discussing it we also included the same logic in
list_datasets
Test it
I've added a few new lines in the tests under
HfApiPublicTest
, maybe a test with a complex query +authors
,search
is not a bad idea.Since I've edited my
main
branch on thefork
this branch has the commits from themain
branch that contains the code for#522. Unfortunately, I am not a git wizard so I've removed that code. I am not sure what's the best way to clean it up while having my other PR open (#522)
Thanks
Francesco