Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,7 @@ def detect_fruit(image):
|
|
22 |
|
23 |
# детекция
|
24 |
detections = model.predict(source=image_cv, conf=0.5)
|
25 |
-
|
26 |
-
print(detections.boxes)
|
27 |
# проверка на наличие детекций
|
28 |
if len(results[0].boxes) == 0:
|
29 |
return image_cv, None
|
|
|
22 |
|
23 |
# детекция
|
24 |
detections = model.predict(source=image_cv, conf=0.5)
|
25 |
+
|
|
|
26 |
# проверка на наличие детекций
|
27 |
if len(results[0].boxes) == 0:
|
28 |
return image_cv, None
|