Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,43 +21,39 @@ for d in data:
|
|
| 21 |
|
| 22 |
html = f"""
|
| 23 |
<style>
|
| 24 |
-
.leaderboard {{
|
| 25 |
width: 100%;
|
| 26 |
-
border-collapse:
|
| 27 |
-
|
| 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
|
|
|
|
| 38 |
}}
|
| 39 |
-
|
| 40 |
-
|
| 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 |
-
|
|
|
|
|
|
|
| 48 |
}}
|
| 49 |
-
|
| 50 |
-
|
| 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>
|
|
|
|
| 21 |
|
| 22 |
html = f"""
|
| 23 |
<style>
|
| 24 |
+
.table-leaderboard {{
|
| 25 |
width: 100%;
|
| 26 |
+
border-collapse: collapse; /* solid grid, no card look */
|
| 27 |
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
|
|
| 28 |
font-size: 14px;
|
| 29 |
}}
|
| 30 |
+
.table-leaderboard thead th {{
|
|
|
|
| 31 |
text-align: left;
|
|
|
|
| 32 |
padding: 10px 12px;
|
| 33 |
+
background: #ffffff; /* header now white */
|
| 34 |
font-weight: 600;
|
| 35 |
+
border: 1px solid #e5e5e5;
|
| 36 |
+
color: #111;
|
| 37 |
}}
|
| 38 |
+
.table-leaderboard tbody tr {{
|
| 39 |
+
background: #ffffff; /* rows white */
|
|
|
|
|
|
|
| 40 |
}}
|
| 41 |
+
.table-leaderboard td {{
|
|
|
|
| 42 |
padding: 10px 12px;
|
| 43 |
+
font-size: 14px;
|
| 44 |
+
border: 1px solid #e5e5e5; /* thin grid lines */
|
| 45 |
+
color: #111;
|
| 46 |
}}
|
| 47 |
+
.table-leaderboard a {{
|
| 48 |
+
color: #0b57d0; /* cleaner link color */
|
|
|
|
| 49 |
text-decoration: none;
|
| 50 |
}}
|
| 51 |
+
.table-leaderboard a:hover {{
|
|
|
|
| 52 |
text-decoration: underline;
|
| 53 |
}}
|
| 54 |
</style>
|
| 55 |
|
| 56 |
+
<table class="table-leaderboard">
|
| 57 |
<thead>
|
| 58 |
<tr>
|
| 59 |
<th>Model Name</th>
|