Spaces:
Runtime error
Runtime error
import gradio as gr | |
from huggingface_hub import HfApi, list_models | |
api = HfApi() | |
# List all models | |
filt = ModelFilter(task="text-classification") | |
this = api.list_models(limit=100,filter=filt,cardData=True) | |
for i,mod in enumerate(this): | |
print(mod) |