Better solution with Hub Python Library:
Filtering models:
List repo files:
Get file url:
And get file metadata (which contains size):
Better solution with Hub Python Library:
Filtering models:
List repo files:
Get file url:
And get file metadata (which contains size):