Download trigger_numerai.py from dirven/numerai_all_48_models: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/datasets/dirven/numerai_all_48_models/resolve/main/trigger_numerai.py
- Command line
-
hf download hf://datasets/dirven/numerai_all_48_models/trigger_numerai.py
-
curl -L -o trigger_numerai.py https://huggingface.co/datasets/dirven/numerai_all_48_models/resolve/main/trigger_numerai.py
607 Bytes
| """ | |
| Trigger Numerai orchestrator on HuggingFace Spaces | |
| Usage: python trigger_numerai.py [your_hf_token] | |
| """ | |
| import requests | |
| import sys | |
| HF_SPACE = "https://dirven-numerai-all-48.hf.space" | |
| if len(sys.argv) > 1: | |
| token = sys.argv[1] | |
| headers = {"Authorization": f"Bearer {token}"} | |
| else: | |
| headers = {} | |
| try: | |
| resp = requests.get(f"{HF_SPACE}/health", headers=headers, timeout=30) | |
| print(f"Health: {resp.json()}") | |
| resp = requests.get(f"{HF_SPACE}/trigger", headers=headers, timeout=30) | |
| print(f"Trigger: {resp.json()}") | |
| except Exception as e: | |
| print(f"Error: {e}") | |
| sys.exit(1) |