ChenyuRabbitLove commited on
Commit
f8f6474
1 Parent(s): 649259c

bugfix: fix minor bugs

Browse files
Files changed (2) hide show
  1. css/style.css +1 -0
  2. utils/completion_reward.py +2 -2
css/style.css CHANGED
@@ -366,6 +366,7 @@ input[type="range"]::-ms-track {
366
  }
367
 
368
  #certificate button {
 
369
  margin: 0 auto;
370
  }
371
 
 
366
  }
367
 
368
  #certificate button {
369
+ display: flex;
370
  margin: 0 auto;
371
  }
372
 
utils/completion_reward.py CHANGED
@@ -511,10 +511,10 @@ 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 += 20
518
 
519
  # Save the image with the text
520
 
 
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=60)
515
  for wrapped_line in wrapped_lines:
516
  draw.text((body_x, body_y), wrapped_line, font=body_font, fill="black")
517
+ body_y += 25
518
 
519
  # Save the image with the text
520