Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,10 @@ def object_detection(im, size=640):
|
|
18 |
results.render() # updates results.imgs with boxes and labels
|
19 |
return Image.fromarray(results.ims[0])
|
20 |
|
21 |
-
title = "
|
22 |
description = """This model is a small demo based on an analysis of 680 images.
|
23 |
"""
|
24 |
-
css = ".output-image, .input-image, .image-preview {height:
|
25 |
|
26 |
input = gr.inputs.Image(shape=(640, 640), image_mode="RGB", source="upload", label="Imagem", optional=False)
|
27 |
output = gr.outputs.Image(type="pil", label="Output Image")
|
|
|
18 |
results.render() # updates results.imgs with boxes and labels
|
19 |
return Image.fromarray(results.ims[0])
|
20 |
|
21 |
+
title = "Pedestrians and Transportations detection on the streets"
|
22 |
description = """This model is a small demo based on an analysis of 680 images.
|
23 |
"""
|
24 |
+
css = ".output-image, .input-image, .image-preview {height: 640px !important}"
|
25 |
|
26 |
input = gr.inputs.Image(shape=(640, 640), image_mode="RGB", source="upload", label="Imagem", optional=False)
|
27 |
output = gr.outputs.Image(type="pil", label="Output Image")
|