Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -253,7 +253,31 @@ with block:
|
|
| 253 |
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
| 254 |
|
| 255 |
styler = build_leaderboard_styler()
|
| 256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
with gr.Row(show_progress=True, variant='panel'):
|
| 258 |
data_component = gr.Dataframe(
|
| 259 |
value=styler,
|
|
|
|
| 253 |
baseline_datatype = ['markdown'] + ['number'] * len(metric_names)
|
| 254 |
|
| 255 |
styler = build_leaderboard_styler()
|
| 256 |
+
|
| 257 |
+
gr.Markdown(
|
| 258 |
+
"""
|
| 259 |
+
### Method-name colour legend
|
| 260 |
+
<span style='color:green; font-weight:bold;'>Green</span> Classical (hand-crafted) representations
|
| 261 |
+
<span style='color:blue; font-weight:bold;'>Blue</span> Small-scale learned representations
|
| 262 |
+
<span style='color:red; font-weight:bold;'>Red</span> Large-scale learned representations
|
| 263 |
+
<span style='color:orange;font-weight:bold;'>Orange</span> Multimodal / composite representations
|
| 264 |
+
""",
|
| 265 |
+
elem_classes="leaderboard-note",
|
| 266 |
+
)
|
| 267 |
+
|
| 268 |
+
gr.Markdown(
|
| 269 |
+
"""
|
| 270 |
+
### Metric-cell shading
|
| 271 |
+
<span style='background-color:#006400; color:white; padding:0 .4rem; border-radius:.2rem;'>1</span>
|
| 272 |
+
<span style='background-color:#228B22; color:white; padding:0 .4rem; border-radius:.2rem;'>2</span>
|
| 273 |
+
<span style='background-color:#32CD32; color:black; padding:0 .4rem; border-radius:.2rem;'>3</span>
|
| 274 |
+
<span style='background-color:#7CFC00; color:black; padding:0 .4rem; border-radius:.2rem;'>4</span>
|
| 275 |
+
<span style='background-color:#ADFF2F; color:black; padding:0 .4rem; border-radius:.2rem;'>5</span>
|
| 276 |
+
= top-five scores (darkest → best)
|
| 277 |
+
""",
|
| 278 |
+
elem_classes="leaderboard-note",
|
| 279 |
+
)
|
| 280 |
+
|
| 281 |
with gr.Row(show_progress=True, variant='panel'):
|
| 282 |
data_component = gr.Dataframe(
|
| 283 |
value=styler,
|