zhongdj commited on
Commit
71a2079
·
1 Parent(s): 992fc6d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ f = Path() / 'bamboo_or_butterfly.pkl'
5
  learn_inf = load_learner(f)
6
 
7
  def predict(img):
8
- pred, pred_idx, probs = learn_inf.predict(img.to_thumb(224))
9
  return f'Prediction: {pred}; Probability:{probs[pred_idx]:.04f}'
10
 
11
  image = gr.inputs.Image(shape=(192, 192))
 
5
  learn_inf = load_learner(f)
6
 
7
  def predict(img):
8
+ pred, pred_idx, probs = learn_inf.predict(img)
9
  return f'Prediction: {pred}; Probability:{probs[pred_idx]:.04f}'
10
 
11
  image = gr.inputs.Image(shape=(192, 192))