Spaces:
Build error
Build error
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) | |