aidn commited on
Commit
c1a8642
·
verified ·
1 Parent(s): 663b4c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -244,7 +244,7 @@ def _render_leaderboard() -> str:
244
  if side == "best":
245
  color = "#27AE60" if pct < 20 else "#A5A8A8" if pct < 40 else "#E67E22"
246
  else:
247
- color = "#C0392B" if pct >= 70 else "#E67E22" if pct >= 50 else "#D4AC0D" if pct >= 30 else "#27AE60"
248
  medal = ["🥇","🥈","🥉"][rank] if rank < 3 else f"{rank+1}."
249
  full = e["text"].replace("<", "&lt;").replace(">", "&gt;")
250
  preview = full[:120] + ("..." if len(full) > 120 else "")
 
244
  if side == "best":
245
  color = "#27AE60" if pct < 20 else "#A5A8A8" if pct < 40 else "#E67E22"
246
  else:
247
+ color = "#C0392B" if pct >= 70 else "#E67E22" if pct >= 50 else "#D4AC0D" if pct >= 30 else "#A5A8A8"
248
  medal = ["🥇","🥈","🥉"][rank] if rank < 3 else f"{rank+1}."
249
  full = e["text"].replace("<", "&lt;").replace(">", "&gt;")
250
  preview = full[:120] + ("..." if len(full) > 120 else "")