Spaces:
Sleeping
Sleeping
Commit
·
7c560dd
1
Parent(s):
2ea16fa
fix typo
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
|
|
|
5 |
def is_cat(x): return x[0].isupper()
|
6 |
|
7 |
learn = load_learner('dog_or_cat.pkl')
|
|
|
2 |
from fastai.vision.all import *
|
3 |
import skimage
|
4 |
|
5 |
+
# I was too lazy to re-export the model using a lambda so I defined the is_cat method here before unpickling
|
6 |
def is_cat(x): return x[0].isupper()
|
7 |
|
8 |
learn = load_learner('dog_or_cat.pkl')
|