Reaperxxxx commited on
Commit
ac723d6
·
verified ·
1 Parent(s): 6be42dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -33,12 +33,9 @@ def leaderboard(names):
33
  total_names = len(name_list)
34
  max_names = 10
35
 
36
- if total_names == 3: # Special case: Center top 3
37
- start_y = 65
38
- line_spacing = 158
39
- else:
40
- start_y = 87
41
- line_spacing = (img_height - 300) // max_names
42
 
43
  start_x = img_width - 680 # Adjust horizontal alignment
44
 
 
33
  total_names = len(name_list)
34
  max_names = 10
35
 
36
+ # Consistent spacing for all cases
37
+ start_y = 87 # Fixed starting Y position
38
+ line_spacing = (img_height - 300) // max_names # Uniform spacing
 
 
 
39
 
40
  start_x = img_width - 680 # Adjust horizontal alignment
41