ChenyuRabbitLove commited on
Commit
3804b73
1 Parent(s): 52dc17f

bugfix: fix minor bugs

Browse files
Files changed (1) hide show
  1. utils/completion_reward.py +1 -1
utils/completion_reward.py CHANGED
@@ -511,7 +511,7 @@ class ImageProcessor:
511
  body_x, body_y = left + 20, title_y + 60 # Adjust position as needed
512
 
513
  for line in paragraph.split("\n"):
514
- wrapped_lines = textwrap.wrap(line, width=55)
515
  for wrapped_line in wrapped_lines:
516
  draw.text((body_x, body_y), wrapped_line, font=body_font, fill="black")
517
  body_y += 30
 
511
  body_x, body_y = left + 20, title_y + 60 # Adjust position as needed
512
 
513
  for line in paragraph.split("\n"):
514
+ wrapped_lines = textwrap.wrap(line, width=50)
515
  for wrapped_line in wrapped_lines:
516
  draw.text((body_x, body_y), wrapped_line, font=body_font, fill="black")
517
  body_y += 30