Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -786,8 +786,8 @@ def predict_with_paper(image, paper_size, offset, finger_clearance=False):
|
|
| 786 |
logger.info(f"Starting prediction with image shape: {image.shape}")
|
| 787 |
logger.info(f"Paper size: {paper_size}")
|
| 788 |
|
| 789 |
-
if offset_unit == "inches":
|
| 790 |
-
|
| 791 |
edge_radius = None
|
| 792 |
if edge_radius is None or edge_radius == 0:
|
| 793 |
edge_radius = 0.0001
|
|
|
|
| 786 |
logger.info(f"Starting prediction with image shape: {image.shape}")
|
| 787 |
logger.info(f"Paper size: {paper_size}")
|
| 788 |
|
| 789 |
+
# if offset_unit == "inches":
|
| 790 |
+
# offset *= 25.4
|
| 791 |
edge_radius = None
|
| 792 |
if edge_radius is None or edge_radius == 0:
|
| 793 |
edge_radius = 0.0001
|