cvergnes commited on
Commit
60ced6c
1 Parent(s): 5de835d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ categories = ['bmw car', 'mercedes car']
11
  learn = load_learner("export.pkl")
12
 
13
  def classify_image(img):
14
- pred, _, prob = learn.predict(img)
15
  return dict(zip(categories, map(float, probs)))
16
 
17
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
 
11
  learn = load_learner("export.pkl")
12
 
13
  def classify_image(img):
14
+ pred, _, probs = learn.predict(img)
15
  return dict(zip(categories, map(float, probs)))
16
 
17
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)