Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -784,11 +784,11 @@ def predict_with_paper(image, paper_size, offset, finger_clearance=False):
|
|
| 784 |
"""Main prediction function using paper as reference"""
|
| 785 |
|
| 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 |
-
|
| 792 |
if edge_radius is None or edge_radius == 0:
|
| 793 |
edge_radius = 0.0001
|
| 794 |
|
|
|
|
| 784 |
"""Main prediction function using paper as reference"""
|
| 785 |
|
| 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
|
| 794 |
|