Nighty3912 commited on
Commit
b932751
·
verified ·
1 Parent(s): 9971630

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -929,7 +929,7 @@ def predict(
929
  # Calculate actual text width from the path's bounds
930
  text_bbox = path.bbox(paths)
931
  #text_width = text_bbox[2] - text_bbox[0] # xmax - xmin
932
- text_width = text_bbox.width
933
  # Calculate center point of inner tool contours
934
  center_x = (inner_min_x + inner_max_x) / 2.0
935
  text_width = text_bbox.extmax.x - text_bbox.extmin.x
 
929
  # Calculate actual text width from the path's bounds
930
  text_bbox = path.bbox(paths)
931
  #text_width = text_bbox[2] - text_bbox[0] # xmax - xmin
932
+ #text_width = text_bbox.width
933
  # Calculate center point of inner tool contours
934
  center_x = (inner_min_x + inner_max_x) / 2.0
935
  text_width = text_bbox.extmax.x - text_bbox.extmin.x