Download sitecustomize.py from junaid-simamdigital/SimamBehindImage: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/spaces/junaid-simamdigital/SimamBehindImage/resolve/main/sitecustomize.py
- Command line
-
hf download hf://spaces/junaid-simamdigital/SimamBehindImage/sitecustomize.py
-
curl -L -o sitecustomize.py https://huggingface.co/spaces/junaid-simamdigital/SimamBehindImage/resolve/main/sitecustomize.py
241 Bytes
| """Keep hosted Space logs UTF-8 even when the base image advertises a charmap.""" | |
| import sys | |
| for _stream in (sys.stdout, sys.stderr): | |
| if hasattr(_stream, "reconfigure"): | |
| _stream.reconfigure(encoding="utf-8", errors="replace") | |