Update app.py
Browse files
app.py
CHANGED
|
@@ -35,12 +35,12 @@ def leaderboard(names):
|
|
| 35 |
|
| 36 |
if total_names == 3: # Special case: Center top 3
|
| 37 |
start_y = 100
|
| 38 |
-
line_spacing =
|
| 39 |
else:
|
| 40 |
start_y = 150
|
| 41 |
line_spacing = (img_height - 300) // max_names
|
| 42 |
|
| 43 |
-
start_x = img_width //
|
| 44 |
|
| 45 |
# Draw names on image
|
| 46 |
for i, name in enumerate(name_list[:max_names]):
|
|
|
|
| 35 |
|
| 36 |
if total_names == 3: # Special case: Center top 3
|
| 37 |
start_y = 100
|
| 38 |
+
line_spacing = 105
|
| 39 |
else:
|
| 40 |
start_y = 150
|
| 41 |
line_spacing = (img_height - 300) // max_names
|
| 42 |
|
| 43 |
+
start_x = img_width // 80 # Adjust horizontal alignment
|
| 44 |
|
| 45 |
# Draw names on image
|
| 46 |
for i, name in enumerate(name_list[:max_names]):
|