khizon commited on
Commit
82fdd05
1 Parent(s): acc00b4

updated title and description

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -50,4 +50,7 @@ def detect_image(im):
50
 
51
  return output_image
52
 
53
- iface = gr.Interface(detect_image, gr.inputs.Image(type = 'pil'), gr.outputs.Image()).launch()
 
 
 
 
50
 
51
  return output_image
52
 
53
+ TITLE = 'Active Transport Detection'
54
+ DESCRIPTION = 'This uses DETR as an object detection model and detects motor vehicles (red) and people and bikes (green). Much fine-tuning and optimization is still needed to make this a practical application'
55
+ examples = [['bike.jpg'], ['bike2.jpg'], ['bike_3.jpg'], ['bike_4.jpg']]
56
+ iface = gr.Interface(detect_image, gr.inputs.Image(type = 'pil'), gr.outputs.Image(), examples = examples, allow_flagging = False, title = TITLE, description = DESCRIPTION).launch()