Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -971,7 +971,7 @@ def predict_with_paper(image, paper_size, offset, offset_unit, finger_clearance=
|
|
971 |
yolo_v8 = get_yolo_v8()
|
972 |
if yolo_v8 is None:
|
973 |
logger.warning("YOLOv8 model not available, proceeding with full image")
|
974 |
-
cropped_image =
|
975 |
crop_offset = (0, 0)
|
976 |
else:
|
977 |
# YOLOv8 detects all COCO classes by default
|
|
|
971 |
yolo_v8 = get_yolo_v8()
|
972 |
if yolo_v8 is None:
|
973 |
logger.warning("YOLOv8 model not available, proceeding with full image")
|
974 |
+
cropped_image = image
|
975 |
crop_offset = (0, 0)
|
976 |
else:
|
977 |
# YOLOv8 detects all COCO classes by default
|