mlbench123 commited on
Commit
6c841a5
·
verified ·
1 Parent(s): 7a81a82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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}, Edge radius: {edge_radius}")
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