From 4289e7929fa124440c42c63ba196af96574182b7 Mon Sep 17 00:00:00 2001 From: malteos Date: Tue, 22 Sep 2026 11:27:15 +0200 Subject: [PATCH] fix(leaderboard): open external links in a new tab, add GitHub link and logo Plain Markdown links in the Gradio header navigated the top frame, which browsers block when the app is embedded in the HF Space iframe, so the Website/Blog/Paper/Add-a-model links were dead on the Space. - app.py: add `_ext_link()` rendering raw `` anchors (Gradio's Markdown sanitizer keeps both attributes) and use it for every external link: header row, dataset-card Reference/License links, and the footer source link. - app.py: add a GitHub link (`GITHUB_URL`) to the header row. - app.py: add the CommonLID logo (light + dark SVG under `leaderboard/images/`, shipped in the wheel) as a `gr.HTML` header next to a "Leaderboard" title, replacing the text-only H1. Both variants are inlined as base64 data URIs so no `allowed_paths` wiring is needed; the swap uses `css_template` with a nested `.dark &` selector because the HTML component ignores inline `