moshe742 commited on
Commit
c6906cf
·
1 Parent(s): a5eeda0
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -13,8 +13,9 @@ def classify_image(image):
13
  pred, idx, probs = learner.predict(image)
14
  return dict(zip(categories, map(float, probs)))
15
 
16
-
 
17
  examples = ['chess.jpg', 'checkers.webp', "dono.jpg"]
18
 
19
- demo = gr.Interface(fn=classify_image, inputs="image", outputs='label', examples=examples)
20
  demo.launch()
 
13
  pred, idx, probs = learner.predict(image)
14
  return dict(zip(categories, map(float, probs)))
15
 
16
+ image = gr.Image(shape=(192, 192))
17
+ label = gr.Label()
18
  examples = ['chess.jpg', 'checkers.webp', "dono.jpg"]
19
 
20
+ demo = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
21
  demo.launch()