Download test.py from umm-dev/ShaNet: direct link, hf CLI and curl.
- Browser
- Download file 214 Bytes
-
https://huggingface.co/umm-dev/ShaNet/resolve/refs%2Fpr%2F4/test.py
- Command line
-
hf download hf://umm-dev/ShaNet@refs/pr/4/test.py
-
curl -L -o test.py https://huggingface.co/umm-dev/ShaNet/resolve/refs%2Fpr%2F4/test.py
214 Bytes
| import torch | |
| try: | |
| ckpt = torch.load("out/ckpt.pt", map_location="cpu") | |
| print("✅ Checkpoint has been loaded successfully") | |
| except Exception as e: | |
| print("❌ Failed to load the checkpoint:", e) | |