Download misc/redirect.py from Heartsync/HWPower: direct link, hf CLI and curl.
- Browser
- Download file 243 Bytes
-
https://huggingface.co/spaces/Heartsync/HWPower/resolve/main/misc/redirect.py
- Command line
-
hf download hf://spaces/Heartsync/HWPower/misc/redirect.py
-
curl -L -o redirect.py https://huggingface.co/spaces/Heartsync/HWPower/resolve/main/misc/redirect.py
243 Bytes
| from __future__ import with_statement | |
| import subprocess | |
| import sys | |
| if __name__ == '__main__': | |
| with file(sys.argv[1], 'wb') as f: | |
| p = subprocess.Popen(sys.argv[2:], stdout=f) | |
| p.wait() | |
| raise SystemExit(p.returncode) | |