Omnibus commited on
Commit
9db53b1
·
1 Parent(s): c6b8d06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,6 +3,8 @@ from huggingface_hub import HfApi, list_models
3
  api = HfApi()
4
 
5
  # List all models
6
- this = api.list_models(limit=100,task="text-classification",cardData=True)
 
 
7
  for i,mod in enumerate(this):
8
  print(mod)
 
3
  api = HfApi()
4
 
5
  # List all models
6
+ filt = ModelFilter(task="text-classification")
7
+
8
+ this = api.list_models(limit=100,filter=filt,cardData=True)
9
  for i,mod in enumerate(this):
10
  print(mod)