Lauren Mitchell commited on
Commit
bb2a063
1 Parent(s): 0004733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[0].isupper()
6
 
7
  learn = load_learner('model.pkl')
8
 
9
- categories = ('Cat', 'Dog')
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)