Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from FootDetection import FootDetection
|
|
5 |
foot_detection = FootDetection("cpu") # "cuda" for GPU or "mps" for App
|
6 |
|
7 |
def detect(img):
|
8 |
-
results = foot_detection.detect(img, threshold=0.
|
9 |
img_with_boxes = foot_detection.draw_boxes(img)
|
10 |
return img_with_boxes
|
11 |
|
|
|
5 |
foot_detection = FootDetection("cpu") # "cuda" for GPU or "mps" for App
|
6 |
|
7 |
def detect(img):
|
8 |
+
results = foot_detection.detect(img, threshold=0.3)
|
9 |
img_with_boxes = foot_detection.draw_boxes(img)
|
10 |
return img_with_boxes
|
11 |
|