Spaces:
Sleeping
Sleeping
praneethsunkara3
feat: implement multi-agent loading state logs, robust Groq fallback models, and SPA router migration
9a06c7c Download code/scratch_list_models.py from Naaviverse/Naaviverse-Path: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/Naaviverse/Naaviverse-Path/resolve/main/code/scratch_list_models.py
- Command line
-
hf download hf://spaces/Naaviverse/Naaviverse-Path/code/scratch_list_models.py
-
curl -L -o scratch_list_models.py https://huggingface.co/spaces/Naaviverse/Naaviverse-Path/resolve/main/code/scratch_list_models.py
338 Bytes
| import os | |
| from groq import Groq | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| client = Groq(api_key=os.environ.get("GROQ_API_KEY")) | |
| try: | |
| models_list = client.models.list() | |
| print("AVAILABLE MODELS:") | |
| for model in models_list.data: | |
| print(f"- {model.id}") | |
| except Exception as e: | |
| print(f"Error fetching models: {e}") | |