Reaperxxxx commited on
Commit
b1117d4
·
verified ·
1 Parent(s): 5772c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def leaderboard(names):
24
  if not os.path.exists(font_path):
25
  return "Error: Font file 'Gagalin.otf' not found", 500
26
 
27
- font = ImageFont.truetype(font_path, 50) # Adjust font size as needed
28
 
29
  # Image dimensions
30
  img_width, img_height = bg.size
@@ -35,7 +35,7 @@ def leaderboard(names):
35
 
36
  if total_names == 3: # Special case: Center top 3
37
  start_y = 100
38
- line_spacing = 120
39
  else:
40
  start_y = 150
41
  line_spacing = (img_height - 300) // max_names
 
24
  if not os.path.exists(font_path):
25
  return "Error: Font file 'Gagalin.otf' not found", 500
26
 
27
+ font = ImageFont.truetype(font_path, 30) # Adjust font size as needed
28
 
29
  # Image dimensions
30
  img_width, img_height = bg.size
 
35
 
36
  if total_names == 3: # Special case: Center top 3
37
  start_y = 100
38
+ line_spacing = 150
39
  else:
40
  start_y = 150
41
  line_spacing = (img_height - 300) // max_names