Download debug_flash_models.py from rzvn1/TRIEM_AI: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/spaces/rzvn1/TRIEM_AI/resolve/main/debug_flash_models.py
- Command line
-
hf download hf://spaces/rzvn1/TRIEM_AI/debug_flash_models.py
-
curl -L -o debug_flash_models.py https://huggingface.co/spaces/rzvn1/TRIEM_AI/resolve/main/debug_flash_models.py
293 Bytes
| import os | |
| from dotenv import load_dotenv | |
| from google import genai | |
| load_dotenv() | |
| api_key = os.getenv("GEMINI_API_KEY") | |
| client = genai.Client(api_key=api_key) | |
| print("Listing FLASH models...") | |
| for model in client.models.list(): | |
| if 'flash' in model.name: | |
| print(f" - {model.name}") | |