Reaperxxxx commited on
Commit
c06d4dc
·
verified ·
1 Parent(s): 867e383

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 80
39
  else:
40
  start_y = 150
41
  line_spacing = (img_height - 300) // max_names
42
 
43
- start_x = img_width // 5 # Adjust horizontal alignment
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]):