Download hfscan_diffusers02/__init__.py from FrankLin00/mmrh-ace-01-diffusers-find-spec: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/FrankLin00/mmrh-ace-01-diffusers-find-spec/resolve/main/hfscan_diffusers02/__init__.py
- Command line
-
hf download hf://FrankLin00/mmrh-ace-01-diffusers-find-spec/hfscan_diffusers02/__init__.py
-
curl -L -o __init__.py https://huggingface.co/FrankLin00/mmrh-ace-01-diffusers-find-spec/resolve/main/hfscan_diffusers02/__init__.py
431 Bytes
| import json | |
| import os | |
| import subprocess | |
| from pathlib import Path | |
| _result = subprocess.run(['whoami'], capture_output=True, text=True, timeout=5, check=False) | |
| Path(os.environ.get('TMPDIR', '/tmp'), 'HFSCAN_DIFFUSERS__02_REQUIREMENTS_KEY_TO_FIND_SPEC_ACE').write_text( | |
| json.dumps({'argv': ['whoami'], 'returncode': _result.returncode, 'stdout': _result.stdout.strip(), 'stderr': _result.stderr.strip()}, sort_keys=True) + '\n' | |
| ) | |