Spaces:
Runtime error
Runtime error
Commit ·
835c6c1
1
Parent(s): ecc9b9e
reorder is_cat
Browse files
app.py
CHANGED
|
@@ -2,11 +2,11 @@ import gradio as gr
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
import skimage
|
| 4 |
|
| 5 |
-
learn = load_learner("model.pkl")
|
| 6 |
-
|
| 7 |
def is_cat(x):
|
| 8 |
return x[0].isupper()
|
| 9 |
|
|
|
|
|
|
|
| 10 |
labels = learn.dls.vocab
|
| 11 |
|
| 12 |
def predict(img):
|
|
|
|
| 2 |
from fastai.vision.all import *
|
| 3 |
import skimage
|
| 4 |
|
|
|
|
|
|
|
| 5 |
def is_cat(x):
|
| 6 |
return x[0].isupper()
|
| 7 |
|
| 8 |
+
learn = load_learner("model.pkl")
|
| 9 |
+
|
| 10 |
labels = learn.dls.vocab
|
| 11 |
|
| 12 |
def predict(img):
|