HfApi method to fetch "liked" models by current user
See original GitHub issueIs your feature request related to a problem? Please describe.
The huggingface dashboard seems to only list the last 20 “liked” models and datasets for my account. I use the “like” button extensively for bookmarking models but recently realized I can only view a limited number. Adding an api method would also help for analysing a user’s interests.
Describe the solution you’d like
Something like this perhaps?
HfApi.get_liked(
username: Optional[str] = None,
auth_token: Optional[str] = None,
entity_type: "all" | "model" | "space" | "dataset" = "all",
max_items: int = 100
) -> List[ModelInfo|SpaceInfo|DatasetInfo]
Issue Analytics
- State:
- Created a year ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Hugging Face Hub API
Below is the documentation for the HfApi class, which serves as a Python wrapper for the Hugging Face Hub's API. All methods from...
Read more >Using the Hub for model storage | Daniel van Strien
I'll use flyswot-test as a way of playing around with this. To start with we can use Repository to clone the current version...
Read more >Get current user in Model Serializer - Stack Overflow
I found the answer looking through the DRF source code. class ActivitySerializer(serializers.ModelSerializer): # Create a custom method ...
Read more >Hugging Face Transformers with Keras: Fine-tune a non ...
You can change the model_id to another BERT-like model for a ... To load the germaner dataset, we use the load_dataset() method from...
Read more >Image Classification using Huggingface ViT | by Kenji Tee
Then using plt.gca() you'll be able to get the current polar axes of the ... Now, if we have a worker process, we...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@creatorrr @camenduru It’s merged ! Feel free to use it from
main
branch 😃yes our backlog is LIFO =)
more seriously: coming soon!