Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

is there a way to search a huggingface Repository for a specific filename?

I’d like to search a huggingface repository for a specific filename, without having to clone it first as it is a rather large repo with thousands of files.

I couldn’t find a way to do it with the web interface, I installed the python package huggingface_hub and looked into huggingface_hub.Repository and huggingface_hub.HfFileSystem without success.

If somehow a search query isn’t possible, may be retrieving the list of files?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Sure. You can use huggingface_hub.list_files_info(repo) to get a list of file information objects for a repository; I’m using that here in my ggify project.


Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading