devudilip commited on
Commit
0515ae8
·
verified ·
1 Parent(s): 4b9fc54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,13 +13,13 @@ def classify_image(img):
13
  pred, idx, probs = learn.predict(img)
14
  return dict(zip(categories, map(float, probs)))
15
 
16
- image = gr.inputs.Image(shape=(192, 192))
17
- label = gr.outputs.Label()
18
 
19
  examples = ['siamese.png']
20
 
21
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
22
- intf.launch(inline=False)
23
 
24
 
25
  # labels = learn.dls.vocab
 
13
  pred, idx, probs = learn.predict(img)
14
  return dict(zip(categories, map(float, probs)))
15
 
16
+ image = gr.Image()
17
+ label = gr.Label()
18
 
19
  examples = ['siamese.png']
20
 
21
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
22
+ intf.launch()
23
 
24
 
25
  # labels = learn.dls.vocab