SPIRA v2: entropy-patch tokenization + hierarchical dopamine-gated spiking cortex + hippocampal one-shot memory with replay consolidation
032a961 verified Download python/scripts/shot_architecture.py from thefinalboss/SPIRA: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/thefinalboss/SPIRA/resolve/main/python/scripts/shot_architecture.py
- Command line
-
hf download hf://thefinalboss/SPIRA/python/scripts/shot_architecture.py
-
curl -L -o shot_architecture.py https://huggingface.co/thefinalboss/SPIRA/resolve/main/python/scripts/shot_architecture.py
581 Bytes
| #!/usr/bin/env python3 | |
| """Screenshot the architecture diagram HTML at 2x for print quality.""" | |
| from playwright.sync_api import sync_playwright | |
| with sync_playwright() as p: | |
| b = p.chromium.launch() | |
| page = b.new_page(viewport={"width": 1228, "height": 700}, device_scale_factor=2) | |
| page.goto("file:///home/z/my-project/scripts/fig_architecture.html") | |
| page.wait_for_timeout(400) | |
| page.screenshot(path="/home/z/my-project/download/spira/artifacts/figures/fig_architecture.png", | |
| full_page=True) | |
| b.close() | |
| print("architecture diagram rendered") | |