KamrusSamad commited on
Commit
e80e252
1 Parent(s): 5adcee7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ model = load_learner('obj-recognizer-v2.pkl')
23
 
24
  def recognize_image(image):
25
  pred, idx, probs = model.predict(image)
26
- return dict(zip(obj_labels, map(float, probs)))
27
 
28
  image = gr.inputs.Image(shape=(192,192))
29
  label = gr.outputs.Label(num_top_classes=5)
 
23
 
24
  def recognize_image(image):
25
  pred, idx, probs = model.predict(image)
26
+ return pred
27
 
28
  image = gr.inputs.Image(shape=(192,192))
29
  label = gr.outputs.Label(num_top_classes=5)