Spaces:
Build error
Build error
Download tmp.py from Davidg707/test_space: direct link, hf CLI and curl.
- Browser
- Download file 298 Bytes
-
https://huggingface.co/spaces/Davidg707/test_space/resolve/main/tmp.py
- Command line
-
hf download hf://spaces/Davidg707/test_space/tmp.py
-
curl -L -o tmp.py https://huggingface.co/spaces/Davidg707/test_space/resolve/main/tmp.py
298 Bytes
| import fastai.vision.all as fav | |
| import os | |
| if os.name != "posix": | |
| print("Converting PosixPath to WindowsPath") | |
| import pathlib | |
| pathlib.PosixPath = pathlib.WindowsPath | |
| def is_cat(x): | |
| return x[0].isupper() # Used by model | |
| def load_model(path): | |
| return fav.load_learner(path) | |