Spaces:
Sleeping
Sleeping
Lauren Mitchell
commited on
Commit
•
bb2a063
1
Parent(s):
0004733
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ import gradio as gr
|
|
2 |
|
3 |
from fastai.vision.all import *
|
4 |
|
5 |
-
def is_cat(x): return x[
|
6 |
|
7 |
learn = load_learner('model.pkl')
|
8 |
|
9 |
-
categories = ('
|
10 |
|
11 |
def classify_image(img):
|
12 |
pred, idx, probs = learn.predict(img)
|
|
|
2 |
|
3 |
from fastai.vision.all import *
|
4 |
|
5 |
+
def is_cat(x): return x[1].isupper()
|
6 |
|
7 |
learn = load_learner('model.pkl')
|
8 |
|
9 |
+
categories = ('Dog', 'Cat')
|
10 |
|
11 |
def classify_image(img):
|
12 |
pred, idx, probs = learn.predict(img)
|