Download scripts/utils/convert_log.py from techprotrade/annator-full-system: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/techprotrade/annator-full-system/resolve/main/scripts/utils/convert_log.py
- Command line
-
hf download hf://spaces/techprotrade/annator-full-system/scripts/utils/convert_log.py
-
curl -L -o convert_log.py https://huggingface.co/spaces/techprotrade/annator-full-system/resolve/main/scripts/utils/convert_log.py
405 Bytes
| try: | |
| with open("git_log.txt", "r", encoding="utf-16-le") as f: | |
| content = f.read() | |
| except Exception as e: | |
| print(f"Failed to read utf-16-le: {e}") | |
| # Try default encoding if that failed, maybe it wasn't utf-16 | |
| with open("git_log.txt", "r") as f: | |
| content = f.read() | |
| with open("git_log_utf8.txt", "w", encoding="utf-8") as f: | |
| f.write(content) | |
| print("Conversion complete") | |