Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def person_counting(image, threshold=0.7):
|
|
43 |
cv2.rectangle(image, pt1=(x_min,y_min), pt2=(x_max,y_max), color=(255,0,0), thickness=1)
|
44 |
return image, counting
|
45 |
|
46 |
-
title = '
|
47 |
css = ".image-preview {height: auto !important;}"
|
48 |
|
49 |
inputs = [gr.inputs.Image(source='upload'), gr.Slider(0, 1, value=0.5, label='threshold')]
|
|
|
43 |
cv2.rectangle(image, pt1=(x_min,y_min), pt2=(x_max,y_max), color=(255,0,0), thickness=1)
|
44 |
return image, counting
|
45 |
|
46 |
+
title = 'Human counting'
|
47 |
css = ".image-preview {height: auto !important;}"
|
48 |
|
49 |
inputs = [gr.inputs.Image(source='upload'), gr.Slider(0, 1, value=0.5, label='threshold')]
|