Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,36 +21,43 @@ for d in data:
|
|
| 21 |
|
| 22 |
html = f"""
|
| 23 |
<style>
|
| 24 |
-
.
|
| 25 |
width: 100%;
|
| 26 |
border-collapse: separate;
|
| 27 |
-
border-spacing: 0
|
| 28 |
-
font-family: sans-serif;
|
|
|
|
| 29 |
}}
|
| 30 |
-
|
|
|
|
| 31 |
text-align: left;
|
|
|
|
| 32 |
padding: 10px 12px;
|
| 33 |
-
background: #f3f3f3;
|
| 34 |
font-weight: 600;
|
| 35 |
-
|
| 36 |
}}
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
| 40 |
}}
|
| 41 |
-
|
|
|
|
| 42 |
padding: 10px 12px;
|
| 43 |
-
|
| 44 |
}}
|
| 45 |
-
|
| 46 |
-
|
|
|
|
| 47 |
text-decoration: none;
|
| 48 |
}}
|
| 49 |
-
|
|
|
|
| 50 |
text-decoration: underline;
|
| 51 |
}}
|
| 52 |
</style>
|
| 53 |
-
|
|
|
|
| 54 |
<thead>
|
| 55 |
<tr>
|
| 56 |
<th>Model Name</th>
|
|
@@ -65,6 +72,7 @@ html = f"""
|
|
| 65 |
</table>
|
| 66 |
"""
|
| 67 |
|
|
|
|
| 68 |
with gr.Blocks() as demo:
|
| 69 |
gr.Markdown("# Bench2Drive Leaderboard")
|
| 70 |
gr.HTML(html)
|
|
|
|
| 21 |
|
| 22 |
html = f"""
|
| 23 |
<style>
|
| 24 |
+
.leaderboard {{
|
| 25 |
width: 100%;
|
| 26 |
border-collapse: separate;
|
| 27 |
+
border-spacing: 0 4px;
|
| 28 |
+
font-family: "Inter", sans-serif;
|
| 29 |
+
font-size: 14px;
|
| 30 |
}}
|
| 31 |
+
|
| 32 |
+
.leaderboard thead th {{
|
| 33 |
text-align: left;
|
| 34 |
+
background: #f6f6f6;
|
| 35 |
padding: 10px 12px;
|
|
|
|
| 36 |
font-weight: 600;
|
| 37 |
+
border-bottom: 1px solid #ddd;
|
| 38 |
}}
|
| 39 |
+
|
| 40 |
+
.leaderboard tbody tr {{
|
| 41 |
+
background: white;
|
| 42 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.08);
|
| 43 |
}}
|
| 44 |
+
|
| 45 |
+
.leaderboard td {{
|
| 46 |
padding: 10px 12px;
|
| 47 |
+
vertical-align: middle;
|
| 48 |
}}
|
| 49 |
+
|
| 50 |
+
.leaderboard a {{
|
| 51 |
+
color: #c62828;
|
| 52 |
text-decoration: none;
|
| 53 |
}}
|
| 54 |
+
|
| 55 |
+
.leaderboard a:hover {{
|
| 56 |
text-decoration: underline;
|
| 57 |
}}
|
| 58 |
</style>
|
| 59 |
+
|
| 60 |
+
<table class="leaderboard">
|
| 61 |
<thead>
|
| 62 |
<tr>
|
| 63 |
<th>Model Name</th>
|
|
|
|
| 72 |
</table>
|
| 73 |
"""
|
| 74 |
|
| 75 |
+
|
| 76 |
with gr.Blocks() as demo:
|
| 77 |
gr.Markdown("# Bench2Drive Leaderboard")
|
| 78 |
gr.HTML(html)
|