File size: 298 Bytes
8842891
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)