Download BioScientist/agent_system/test_api.py from czty/BioOcto: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/datasets/czty/BioOcto/resolve/main/BioScientist/agent_system/test_api.py
- Command line
-
hf download hf://datasets/czty/BioOcto/BioScientist/agent_system/test_api.py
-
curl -L -o test_api.py https://huggingface.co/datasets/czty/BioOcto/resolve/main/BioScientist/agent_system/test_api.py
290 Bytes
| # Quick test script | |
| import requests | |
| api_key = "REDACTED_GOOGLE_API_KEY" # Replace with your actual key | |
| url = f"https://generativelanguage.googleapis.com/v1beta/models?key={api_key}" | |
| response = requests.get(url) | |
| print(f"Status: {response.status_code}") | |
| print(f"Response: {response.text}") |