Download code/actionman/__init__.py from shing-dev/ActionMan-0.1: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/shing-dev/ActionMan-0.1/resolve/main/code/actionman/__init__.py
- Command line
-
hf download hf://shing-dev/ActionMan-0.1/code/actionman/__init__.py
-
curl -L -o __init__.py https://huggingface.co/shing-dev/ActionMan-0.1/resolve/main/code/actionman/__init__.py
297 Bytes
| """ActionMan: decision encoder + masked-diffusion argument filler.""" | |
| import os | |
| import time | |
| def beat(): | |
| """Touch $HEARTBEAT (if set) so the box watchdog knows we're alive.""" | |
| p = os.environ.get("HEARTBEAT") | |
| if p: | |
| with open(p, "w") as f: | |
| f.write(str(time.time())) | |