Spaces:
Sleeping
Sleeping
Commit ·
6baec08
1
Parent(s): 78c89f8
Rename Organization -> Authors / Org; move Fam column to last position
Browse files
app.py
CHANGED
|
@@ -238,8 +238,7 @@ def render_leaderboard_html() -> str:
|
|
| 238 |
"<thead><tr>"
|
| 239 |
'<th class="rank">#</th>'
|
| 240 |
'<th class="left">Method</th>'
|
| 241 |
-
'<th class="left">
|
| 242 |
-
'<th class="left">Organization</th>'
|
| 243 |
'<th class="score">ViTeX-Score↑</th>'
|
| 244 |
'<th class="axis">Correctness↑</th>'
|
| 245 |
'<th class="axis">Visual↑</th>'
|
|
@@ -249,6 +248,7 @@ def render_leaderboard_html() -> str:
|
|
| 249 |
"<th>MUSIQ_f↑</th><th>MUSIQ_c↑</th>"
|
| 250 |
"<th>PSNR↑</th><th>SSIM↑</th><th>LPIPS↓</th><th>DSim↓</th>"
|
| 251 |
'<th class="left">Links</th>'
|
|
|
|
| 252 |
"</tr></thead><tbody>"
|
| 253 |
)
|
| 254 |
for i, r in enumerate(rows, 1):
|
|
@@ -257,14 +257,13 @@ def render_leaderboard_html() -> str:
|
|
| 257 |
org = _html.escape(r.get("organization", "—") or "—")
|
| 258 |
note = r.get("note", "")
|
| 259 |
method_with_note = (
|
| 260 |
-
f'{method} <span title="{_html.escape(note)}" style="color:#
|
| 261 |
if note else method
|
| 262 |
)
|
| 263 |
|
| 264 |
lines.append("<tr>")
|
| 265 |
lines.append(f'<td class="rank">{i}</td>')
|
| 266 |
lines.append(f'<td class="left method">{method_with_note}</td>')
|
| 267 |
-
lines.append(f'<td class="left family">{fam}</td>')
|
| 268 |
lines.append(f'<td class="left org" title="{org}">{org}</td>')
|
| 269 |
|
| 270 |
lines.append(f'<td class="score">{_fmt(r.get("vitex_score"), ".4f")}</td>')
|
|
@@ -283,6 +282,7 @@ def render_leaderboard_html() -> str:
|
|
| 283 |
lines.append(f'<td class="metric">{_fmt(r.get(k), fmt, dim)}</td>')
|
| 284 |
|
| 285 |
lines.append(f'<td class="left links">{_links(r)}</td>')
|
|
|
|
| 286 |
lines.append("</tr>")
|
| 287 |
|
| 288 |
lines.append("</tbody></table></div>")
|
|
|
|
| 238 |
"<thead><tr>"
|
| 239 |
'<th class="rank">#</th>'
|
| 240 |
'<th class="left">Method</th>'
|
| 241 |
+
'<th class="left">Authors / Org</th>'
|
|
|
|
| 242 |
'<th class="score">ViTeX-Score↑</th>'
|
| 243 |
'<th class="axis">Correctness↑</th>'
|
| 244 |
'<th class="axis">Visual↑</th>'
|
|
|
|
| 248 |
"<th>MUSIQ_f↑</th><th>MUSIQ_c↑</th>"
|
| 249 |
"<th>PSNR↑</th><th>SSIM↑</th><th>LPIPS↓</th><th>DSim↓</th>"
|
| 250 |
'<th class="left">Links</th>'
|
| 251 |
+
'<th class="left">Fam</th>'
|
| 252 |
"</tr></thead><tbody>"
|
| 253 |
)
|
| 254 |
for i, r in enumerate(rows, 1):
|
|
|
|
| 257 |
org = _html.escape(r.get("organization", "—") or "—")
|
| 258 |
note = r.get("note", "")
|
| 259 |
method_with_note = (
|
| 260 |
+
f'{method} <span title="{_html.escape(note)}" style="color:#635bff;font-weight:600;cursor:help">†</span>'
|
| 261 |
if note else method
|
| 262 |
)
|
| 263 |
|
| 264 |
lines.append("<tr>")
|
| 265 |
lines.append(f'<td class="rank">{i}</td>')
|
| 266 |
lines.append(f'<td class="left method">{method_with_note}</td>')
|
|
|
|
| 267 |
lines.append(f'<td class="left org" title="{org}">{org}</td>')
|
| 268 |
|
| 269 |
lines.append(f'<td class="score">{_fmt(r.get("vitex_score"), ".4f")}</td>')
|
|
|
|
| 282 |
lines.append(f'<td class="metric">{_fmt(r.get(k), fmt, dim)}</td>')
|
| 283 |
|
| 284 |
lines.append(f'<td class="left links">{_links(r)}</td>')
|
| 285 |
+
lines.append(f'<td class="left family">{fam}</td>')
|
| 286 |
lines.append("</tr>")
|
| 287 |
|
| 288 |
lines.append("</tbody></table></div>")
|