Spaces:
Runtime error
Runtime error
updated title and description
Browse files
app.py
CHANGED
@@ -50,4 +50,7 @@ def detect_image(im):
|
|
50 |
|
51 |
return output_image
|
52 |
|
53 |
-
|
|
|
|
|
|
|
|
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()
|