Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
dbd4f87
1
Parent(s):
c49c4b7
bugfix: fix minor bugs
Browse files- css/style.css +4 -0
- utils/completion_reward.py +2 -2
css/style.css
CHANGED
@@ -365,6 +365,10 @@ input[type="range"]::-ms-track {
|
|
365 |
border: 5px solid #02b28f !important;
|
366 |
}
|
367 |
|
|
|
|
|
|
|
|
|
368 |
#select_story {
|
369 |
display: flex;
|
370 |
justify-content: space-evenly;
|
|
|
365 |
border: 5px solid #02b28f !important;
|
366 |
}
|
367 |
|
368 |
+
#cetificate button {
|
369 |
+
margin: 0 auto;
|
370 |
+
}
|
371 |
+
|
372 |
#select_story {
|
373 |
display: flex;
|
374 |
justify-content: space-evenly;
|
utils/completion_reward.py
CHANGED
@@ -476,7 +476,7 @@ class ImageProcessor:
|
|
476 |
|
477 |
# Draw the box
|
478 |
left, right = 50, img.width - 50
|
479 |
-
box_height =
|
480 |
top = (img.height - box_height) // 2
|
481 |
bottom = (img.height + box_height) // 2
|
482 |
border_radius = 20
|
@@ -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
|
|
|
476 |
|
477 |
# Draw the box
|
478 |
left, right = 50, img.width - 50
|
479 |
+
box_height = 600
|
480 |
top = (img.height - box_height) // 2
|
481 |
bottom = (img.height + box_height) // 2
|
482 |
border_radius = 20
|
|
|
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=65)
|
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
|