niloycste68 commited on
Commit
06786ae
1 Parent(s): 9601b00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ def recognize_image(image):
18
  pred, idx, probs = model.predict(image)
19
  return dict(zip(cap_labels, map(float, probs)))
20
 
21
- image_input = gr.Image()
22
- label_output = gr.Label()
23
 
24
  examples = [
25
  'test_images/bus.jpg',
 
18
  pred, idx, probs = model.predict(image)
19
  return dict(zip(cap_labels, map(float, probs)))
20
 
21
+ image_input = gr.inputs.Image(shape=(224,224))
22
+ label_output = gr.outputs.Label()
23
 
24
  examples = [
25
  'test_images/bus.jpg',