Spaces:
Sleeping
Sleeping
Update add_text.py
Browse files- add_text.py +1 -1
add_text.py
CHANGED
@@ -23,7 +23,7 @@ def add_text(image, text, font_path, bubble_contour):
|
|
23 |
x, y, w, h = cv2.boundingRect(bubble_contour)
|
24 |
|
25 |
line_height = 16
|
26 |
-
font_size =
|
27 |
wrapping_ratio = 0.075
|
28 |
|
29 |
wrapped_text = textwrap.fill(text, width=int(w * wrapping_ratio),
|
|
|
23 |
x, y, w, h = cv2.boundingRect(bubble_contour)
|
24 |
|
25 |
line_height = 16
|
26 |
+
font_size = 16
|
27 |
wrapping_ratio = 0.075
|
28 |
|
29 |
wrapped_text = textwrap.fill(text, width=int(w * wrapping_ratio),
|