gitanshgarg commited on
Commit
e94d862
·
verified ·
1 Parent(s): 16c2641

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -13,9 +13,7 @@ def classify_drinks(img):
13
  return dict(zip(categories, map(float, probs)))
14
 
15
 
16
- img = gr.inputs.Image(shape = (192,192))
17
- label = gr.outputs.Label()
18
 
19
-
20
- iface = gr.Interface(fn=classify_images, inputs=img, outputs=label)
21
- iface.launch(share=True)
 
13
  return dict(zip(categories, map(float, probs)))
14
 
15
 
 
 
16
 
17
+ gr.Interface(fn=classify_drinks,
18
+ inputs=gr.Image(type="pil"),
19
+ outputs= gr.Label()).launch(share=True)