Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from huggingface_hub import HfApi, list_models
|
|
3 |
api = HfApi()
|
4 |
|
5 |
# List all models
|
6 |
-
|
|
|
|
|
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)
|