CoolFace
Apppublic

victor/pelican-benchmark

sourceHugging Faceupdated 1y agoView on Hugging Face
3likes
fetch_models.py14 linesDownload Raw Back to root
1import requests2import json3 4# Fetch available models from Hugging Face router5response = requests.get("https://router.huggingface.co/v1/models")6models = response.json()7 8print(f"Found {len(models['data'])} models:")9for model in models['data']:10    print(f"- {model['id']}")11 12# Save to file for later use13with open('models.json', 'w') as f:14    json.dump(models, f, indent=2)