Spaces:
Configuration error
Configuration error
Download test_api_google.py from fhyfhy/IMO-solver-new: direct link, hf CLI and curl.
- Browser
- Download file 199 Bytes
-
https://huggingface.co/spaces/fhyfhy/IMO-solver-new/resolve/main/test_api_google.py
- Command line
-
hf download hf://spaces/fhyfhy/IMO-solver-new/test_api_google.py
-
curl -L -o test_api_google.py https://huggingface.co/spaces/fhyfhy/IMO-solver-new/resolve/main/test_api_google.py
199 Bytes
| from google import genai | |
| client = genai.Client() | |
| response = client.models.generate_content( | |
| model="gemini-2.5-flash", | |
| contents="Explain how AI works in a few words", | |
| ) | |
| print(response.text) |