Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
fda763c
1
Parent(s):
2429967
bugfix: fix minor bugs
Browse files
utils/completion_reward.py
CHANGED
@@ -507,7 +507,7 @@ class ImageProcessor:
|
|
507 |
body_x, body_y = left + 20, title_y + 60 # Adjust position as needed
|
508 |
|
509 |
for line in paragraph.split("\n"):
|
510 |
-
wrapped_lines = textwrap.wrap(line, width=
|
511 |
for wrapped_line in wrapped_lines:
|
512 |
draw.text((body_x, body_y), wrapped_line, font=body_font, fill="black")
|
513 |
body_y += 30
|
|
|
507 |
body_x, body_y = left + 20, title_y + 60 # Adjust position as needed
|
508 |
|
509 |
for line in paragraph.split("\n"):
|
510 |
+
wrapped_lines = textwrap.wrap(line, width=75)
|
511 |
for wrapped_line in wrapped_lines:
|
512 |
draw.text((body_x, body_y), wrapped_line, font=body_font, fill="black")
|
513 |
body_y += 30
|