NLTuan commited on
Commit
0c47f73
·
1 Parent(s): 8d20fe3
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -15,10 +15,7 @@ def classify_image(img):
15
  pred, ind, probs = learner.predict(img)
16
  return dict(zip(categories,map(float,probs)))
17
 
18
-
19
- print(classify_image(im))
20
-
21
  image = gr.input.Image(shape = (192, 192))
22
  label = gr.outputs.Label()
23
- iface = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples =examples)
24
  iface.launch()
 
15
  pred, ind, probs = learner.predict(img)
16
  return dict(zip(categories,map(float,probs)))
17
 
 
 
 
18
  image = gr.input.Image(shape = (192, 192))
19
  label = gr.outputs.Label()
20
+ iface = gr.Interface(fn=classify_image, inputs=image, outputs=label)
21
  iface.launch()