CarlaLeaderboards commited on
Commit
1624352
·
verified ·
1 Parent(s): 62f89ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -5
app.py CHANGED
@@ -20,13 +20,44 @@ for d in data:
20
  """
21
 
22
  html = f"""
23
- <table style="width:100%; border-collapse:collapse; border:1px solid #ccc;">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  <thead>
25
  <tr>
26
- <th style="text-align:left; border:1px solid #ccc; padding:4px;">Model Name</th>
27
- <th style="text-align:left; border:1px solid #ccc; padding:4px;">Driving Score</th>
28
- <th style="text-align:left; border:1px solid #ccc; padding:4px;">Paper</th>
29
- <th style="text-align:left; border:1px solid #ccc; padding:4px;">Repository</th>
30
  </tr>
31
  </thead>
32
  <tbody>
@@ -35,6 +66,7 @@ html = f"""
35
  </table>
36
  """
37
 
 
38
  with gr.Blocks() as demo:
39
  gr.Markdown("# Bench2Drive Leaderboard")
40
  gr.HTML(html)
 
20
  """
21
 
22
  html = f"""
23
+ <style>
24
+ .table-leaderboard {
25
+ width: 100%;
26
+ border-collapse: separate;
27
+ border-spacing: 0 6px;
28
+ font-family: sans-serif;
29
+ }
30
+ .table-leaderboard thead th {
31
+ text-align: left;
32
+ padding: 10px 12px;
33
+ background: #f3f3f3;
34
+ font-weight: 600;
35
+ font-size: 14px;
36
+ }
37
+ .table-leaderboard tbody tr {
38
+ background: #ffffff;
39
+ box-shadow: 0 0 0 1px #e5e5e5;
40
+ }
41
+ .table-leaderboard td {
42
+ padding: 10px 12px;
43
+ font-size: 14px;
44
+ }
45
+ .table-leaderboard a {
46
+ color: #d93025; /* Google red style for paper links */
47
+ text-decoration: none;
48
+ }
49
+ .table-leaderboard a:hover {
50
+ text-decoration: underline;
51
+ }
52
+ </style>
53
+
54
+ <table class="table-leaderboard">
55
  <thead>
56
  <tr>
57
+ <th>Model Name</th>
58
+ <th>Driving Score</th>
59
+ <th>Paper</th>
60
+ <th>Repository</th>
61
  </tr>
62
  </thead>
63
  <tbody>
 
66
  </table>
67
  """
68
 
69
+
70
  with gr.Blocks() as demo:
71
  gr.Markdown("# Bench2Drive Leaderboard")
72
  gr.HTML(html)