kellyshreeve commited on
Commit
c63faaf
·
verified ·
1 Parent(s): 1f9994b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ neural_net = load_learner('trained-NN.pkl')
7
  labels = neural_net.dls.vocab
8
 
9
  def predict(img):
10
- img = PILImage.create(img)
11
  category, idx, probs = neural_net.predict(img)
12
  return 'code has run'
13
 
 
7
  labels = neural_net.dls.vocab
8
 
9
  def predict(img):
10
+ img = load_image(img)
11
  category, idx, probs = neural_net.predict(img)
12
  return 'code has run'
13