Spaces:
Running
Running
Update app.py
Browse files
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
|