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