Ziaul commited on
Commit
7478605
1 Parent(s): 1087211

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -223,12 +223,12 @@ def detect(image):
223
  return image, 'Undetected', 'Undetected', 'Undetected'
224
 
225
  iface=gr.Interface(detect,
226
- inputs=gr.inputs.Image(label="Upload an Image"),
227
- outputs=[gr.outputs.Pil(label="Detected Image"),
228
- gr.outputs.Label(label="Shape"),
229
  # gr.outputs.Image(label="Removed Background Image"),
230
- gr.outputs.Label(label="Color"),
231
- gr.outputs.Label(label="Signs")
232
  ],
233
  title="Bangladeshi Traffic Sign, Detection, Shape-Color Recognition & Classification",
234
  examples=['examples/1.jpg','./examples/2.jpg', './examples/4.jpg'],
 
223
  return image, 'Undetected', 'Undetected', 'Undetected'
224
 
225
  iface=gr.Interface(detect,
226
+ inputs=gr.Image(label="Upload an Image"),
227
+ outputs=[gr.Image(label="Detected Image"),
228
+ gr.Label(label="Shape"),
229
  # gr.outputs.Image(label="Removed Background Image"),
230
+ gr.Label(label="Color"),
231
+ gr.Label(label="Signs")
232
  ],
233
  title="Bangladeshi Traffic Sign, Detection, Shape-Color Recognition & Classification",
234
  examples=['examples/1.jpg','./examples/2.jpg', './examples/4.jpg'],