Spaces:
Running
Running
Commit ·
6c26a3c
1
Parent(s): a0d6c1d
Space UI: align card icons, tighten card/grader spacing, button sizing, nav links open in new tab
Browse files
app.py
CHANGED
|
@@ -44,8 +44,7 @@ def examples():
|
|
| 44 |
if not payloads:
|
| 45 |
return '<div class="k-html"><p class="k-small k-muted">Featured reports are unavailable right now. You can still grade a public dataset above.</p></div>'
|
| 46 |
return ('<div class="k-html"><p class="k-small k-muted" style="margin:0">KPIs cover these example reports only.</p>'
|
| 47 |
-
+ kpis(payloads) + '<div class="k-cards">' + ''.join(render(p) for p in payloads) + '</div>'
|
| 48 |
-
'<p class="k-foot">Published CLI assessments · outcomes apply within the recorded scope. Reports may use different revisions and assessment scopes.</p></div>')
|
| 49 |
|
| 50 |
|
| 51 |
def _one(html):
|
|
@@ -90,7 +89,7 @@ with gr.Blocks(title='Kalanos · Robotics Dataset Quality') as demo:
|
|
| 90 |
ref_in = gr.Textbox(label='Public HF dataset', placeholder='lerobot/pusht', scale=4, show_label=False, container=False)
|
| 91 |
go = gr.Button('Grade dataset', variant='primary', scale=1, elem_classes='k-primary')
|
| 92 |
# Secondary action stays clear; report cards themselves use compact icons.
|
| 93 |
-
lookup_btn = gr.Button('View published
|
| 94 |
status = gr.Textbox(label='Audit status', interactive=False, lines=1, max_lines=2, elem_classes='k-status', container=False, placeholder='Audit status appears here.')
|
| 95 |
out = gr.HTML()
|
| 96 |
report_state = gr.State(None, time_to_live=600)
|
|
|
|
| 44 |
if not payloads:
|
| 45 |
return '<div class="k-html"><p class="k-small k-muted">Featured reports are unavailable right now. You can still grade a public dataset above.</p></div>'
|
| 46 |
return ('<div class="k-html"><p class="k-small k-muted" style="margin:0">KPIs cover these example reports only.</p>'
|
| 47 |
+
+ kpis(payloads) + '<div class="k-cards">' + ''.join(render(p) for p in payloads) + '</div></div>')
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
def _one(html):
|
|
|
|
| 89 |
ref_in = gr.Textbox(label='Public HF dataset', placeholder='lerobot/pusht', scale=4, show_label=False, container=False)
|
| 90 |
go = gr.Button('Grade dataset', variant='primary', scale=1, elem_classes='k-primary')
|
| 91 |
# Secondary action stays clear; report cards themselves use compact icons.
|
| 92 |
+
lookup_btn = gr.Button('View published report', scale=1, elem_classes='k-secondary')
|
| 93 |
status = gr.Textbox(label='Audit status', interactive=False, lines=1, max_lines=2, elem_classes='k-status', container=False, placeholder='Audit status appears here.')
|
| 94 |
out = gr.HTML()
|
| 95 |
report_state = gr.State(None, time_to_live=600)
|
cards.py
CHANGED
|
@@ -35,12 +35,17 @@ CSS = f'''
|
|
| 35 |
.gradio-container .block,.gradio-container .form{{background:transparent!important;border:0!important;box-shadow:none!important}}
|
| 36 |
.gradio-container input[type=text],.gradio-container textarea{{background:#fff!important;border:1px solid var(--k-line)!important;border-radius:3px!important;box-shadow:none!important}}
|
| 37 |
.gradio-container input[type=text]:focus-visible{{outline:3px solid #dc8437!important;outline-offset:3px}}
|
| 38 |
-
.gradio-container .k-primary{{background:var(--k-navy)!important;color:#fff!important;border:1px solid var(--k-navy)!important;border-radius:3px!important
|
| 39 |
.gradio-container .k-primary,.gradio-container .k-primary *{{color:#fff!important}}
|
| 40 |
.gradio-container .k-primary:hover{{background:#24475a!important}}
|
| 41 |
.gradio-container .k-secondary{{background:#fff!important;border:1px solid var(--k-line)!important;color:var(--k-ink)!important;border-radius:3px!important}}
|
| 42 |
.gradio-container .k-secondary:hover{{border-color:#506d68!important;background:#f5f8f5!important}}
|
| 43 |
-
.gradio-container .k-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
.gradio-container .k-status label span{{display:none}}
|
| 45 |
.gradio-container .accordion,.gradio-container .k-accordion{{border:1px solid var(--k-line)!important;background:#fff!important;border-radius:0!important}}
|
| 46 |
|
|
@@ -50,12 +55,14 @@ CSS = f'''
|
|
| 50 |
.k-muted{{color:var(--k-muted)}}.k-small{{font-size:13px}}
|
| 51 |
|
| 52 |
.k-nav{{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #afb4a9;margin-bottom:8px}}
|
| 53 |
-
.k-nav a
|
|
|
|
|
|
|
| 54 |
.k-btn{{border:1px solid var(--k-line);background:#fff;padding:9px 14px;border-radius:3px;text-decoration:none;display:inline-block;color:var(--k-ink)}}
|
| 55 |
.k-btn.primary{{background:var(--k-navy);color:#fff!important;border-color:var(--k-navy)}}.k-btn.primary:hover{{background:#24475a}}.k-btn.primary *{{color:#fff!important}}
|
| 56 |
.k-hero{{max-width:750px;margin:22px 0 12px}}.k-hero h1{{font-size:34px;letter-spacing:-1px;line-height:1.2;margin:4px 0 6px;font-weight:500}}.k-hero p{{margin:6px 0 10px;color:var(--k-muted)}}
|
| 57 |
.k-hero .k-linklist{{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}}
|
| 58 |
-
.k-grader{{background:var(--k-sage);border:1px solid #bdcbbb;padding:
|
| 59 |
.k-section{{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:20px 0 4px}}.k-section h2{{font-size:24px;letter-spacing:-.5px;margin:0;font-weight:500}}
|
| 60 |
|
| 61 |
.k-kpis{{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--k-line);margin:12px 0 16px}}
|
|
@@ -63,29 +70,31 @@ CSS = f'''
|
|
| 63 |
.k-kpis strong{{display:block;font-size:26px;font-weight:500;line-height:1.2}}.k-kpis span{{font-size:12px;color:var(--k-muted)}}
|
| 64 |
|
| 65 |
.k-cards{{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}}
|
| 66 |
-
.k-card{{background:#fff;border:1px solid var(--k-line);padding:
|
| 67 |
-
.k-card h3{{font-size:
|
| 68 |
.k-pill{{display:inline-block;align-self:flex-start;padding:4px 9px;font-size:12px;border:0}}
|
| 69 |
.k-pill.review{{background:#fbedd4;color:#70501d!important}}.k-pill.pass{{background:#e8f0e9;color:#375b44!important}}.k-pill.blocked{{background:#f3dcd8;color:#6b2a22!important}}.k-pill.incomplete{{background:#ebebe6;color:#4b4f49!important}}
|
| 70 |
-
.k-card-id{{font:11px 'IBM Plex Mono',monospace;overflow-wrap:anywhere;
|
| 71 |
-
.k-score{{
|
| 72 |
-
.k-score strong{{font-size:
|
| 73 |
-
.k-stats{{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:
|
| 74 |
-
.k-bar{{height:8px;display:flex;margin:
|
| 75 |
.k-bar span{{display:block;height:100%}}.k-bar .pass{{background:var(--k-green)}}.k-bar .review{{background:var(--k-amber)}}.k-bar .blocked{{background:#a6473a}}
|
| 76 |
-
.k-counts{{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;justify-content:space-between;margin-bottom:
|
| 77 |
-
.k-note{{font-size:13px;
|
| 78 |
-
.k-meta{{font:11px/1.
|
| 79 |
-
.k-actions{{display:flex;align-items:
|
| 80 |
-
.k-
|
| 81 |
-
.k-icon
|
| 82 |
-
.k-
|
|
|
|
|
|
|
| 83 |
.k-card details table{{width:100%;font-size:12px;border-collapse:collapse}}.k-card details td{{overflow-wrap:anywhere;padding:6px;border-bottom:1px solid var(--k-line);vertical-align:top}}
|
| 84 |
.k-foot{{font-size:12px;color:var(--k-muted);margin:4px 0 16px}}
|
| 85 |
.k-share{{border:1px solid #b5c7bb;background:var(--k-sage);padding:18px 22px;margin:22px 0 10px;display:flex;justify-content:space-between;align-items:center;gap:20px}}
|
| 86 |
.k-share h3{{margin:0 0 4px;font-size:19px;font-weight:500}}.k-share p{{margin:0;font-size:13px;color:var(--k-muted)}}
|
| 87 |
.k-footer{{font:12px 'IBM Plex Mono',monospace;color:var(--k-muted);padding:18px 0 8px;border-top:1px solid #afb4a9;margin-top:20px}}
|
| 88 |
-
@media(max-width:760px){{.k-nav{{flex-direction:column;align-items:flex-start}}.k-hero h1{{font-size:28px}}.k-kpis{{grid-template-columns:1fr 1fr}}.k-kpis>div:nth-child(2){{border-right:0}}.k-kpis>div:nth-child(-n+2){{border-bottom:1px solid var(--k-line)}}.k-cards{{grid-template-columns:1fr}}.k-
|
| 89 |
@media(pointer:coarse){{.k-icon{{width:44px;height:44px}}}}
|
| 90 |
'''
|
| 91 |
|
|
@@ -99,20 +108,21 @@ def link(url, label, kind):
|
|
| 99 |
|
| 100 |
|
| 101 |
def header(base):
|
| 102 |
-
"""Site chrome matching the Hub nav: Hub → Search → GitHub → Method → Audit."""
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
f'<
|
| 106 |
-
f'<a
|
|
|
|
| 107 |
f'<div class="k-hero"><div class="k-eyebrow accent">Public dataset assessments</div><h1>Kalanos · Robotics Dataset Quality</h1>'
|
| 108 |
f'<p>Check a LeRobot dataset. Explore and share its quality report.</p>'
|
| 109 |
-
f'<div class="k-linklist"><a href="{base}/datasets">Browse Kalanos Hub ↗</a>'
|
| 110 |
-
f'<a href="https://huggingface.co/collections/kalanosdev/robotics-dataset-quality-grades"
|
| 111 |
|
| 112 |
|
| 113 |
def grader_intro():
|
| 114 |
-
return ('<div class="k-html"><h3 style="margin:0 0
|
| 115 |
-
'<p class="k-small k-muted" style="margin:0
|
| 116 |
|
| 117 |
|
| 118 |
def section(title, note=''):
|
|
@@ -120,10 +130,11 @@ def section(title, note=''):
|
|
| 120 |
|
| 121 |
|
| 122 |
def share_strip(base):
|
|
|
|
| 123 |
return (f'<div class="k-html"><div class="k-share"><div><h3>Make your assessment easy to share.</h3>'
|
| 124 |
f'<p>Open the card icon on any report, or the Markdown panel above, and paste the section into your HF dataset README.</p></div>'
|
| 125 |
-
f'<a class="k-btn" href="{base}/datasets">See all reports →</a></div>'
|
| 126 |
-
f'<footer class="k-footer">KALANOS / DATA QUALITY FOR PHYSICAL AI · <a href="{base}/datasets">Hub</a> · <a href="https://github.com/KalanosAI"
|
| 127 |
|
| 128 |
|
| 129 |
def kpis(payloads):
|
|
|
|
| 35 |
.gradio-container .block,.gradio-container .form{{background:transparent!important;border:0!important;box-shadow:none!important}}
|
| 36 |
.gradio-container input[type=text],.gradio-container textarea{{background:#fff!important;border:1px solid var(--k-line)!important;border-radius:3px!important;box-shadow:none!important}}
|
| 37 |
.gradio-container input[type=text]:focus-visible{{outline:3px solid #dc8437!important;outline-offset:3px}}
|
| 38 |
+
.gradio-container .k-primary{{background:var(--k-navy)!important;color:#fff!important;border:1px solid var(--k-navy)!important;border-radius:3px!important}}
|
| 39 |
.gradio-container .k-primary,.gradio-container .k-primary *{{color:#fff!important}}
|
| 40 |
.gradio-container .k-primary:hover{{background:#24475a!important}}
|
| 41 |
.gradio-container .k-secondary{{background:#fff!important;border:1px solid var(--k-line)!important;color:var(--k-ink)!important;border-radius:3px!important}}
|
| 42 |
.gradio-container .k-secondary:hover{{border-color:#506d68!important;background:#f5f8f5!important}}
|
| 43 |
+
.gradio-container .k-primary,.gradio-container .k-secondary{{font-weight:500!important;font-size:14px!important;line-height:1!important;white-space:nowrap;min-height:0!important;height:42px;padding:0 16px!important;box-shadow:none!important;flex:0 0 auto!important;width:auto!important;min-width:0!important}}
|
| 44 |
+
.gradio-container .k-grader{{background:var(--k-sage)!important;border:1px solid #bdcbbb!important;padding:14px 18px 10px!important;margin:12px 0 18px!important;gap:8px!important;border-radius:0!important}}
|
| 45 |
+
.gradio-container .k-grader .block,.gradio-container .k-grader .html-container{{padding:0!important;margin:0!important;min-height:0!important}}
|
| 46 |
+
.gradio-container .k-grader .row{{gap:8px!important;align-items:center!important;margin:4px 0 2px!important}}
|
| 47 |
+
.gradio-container .k-grader input[type=text]{{height:42px!important;padding:0 12px!important}}
|
| 48 |
+
.gradio-container .k-status textarea{{font-family:'IBM Plex Mono',monospace!important;font-size:12px!important;color:var(--k-muted)!important;background:transparent!important;border:0!important;padding:2px 0 0!important;min-height:0!important;resize:none}}
|
| 49 |
.gradio-container .k-status label span{{display:none}}
|
| 50 |
.gradio-container .accordion,.gradio-container .k-accordion{{border:1px solid var(--k-line)!important;background:#fff!important;border-radius:0!important}}
|
| 51 |
|
|
|
|
| 55 |
.k-muted{{color:var(--k-muted)}}.k-small{{font-size:13px}}
|
| 56 |
|
| 57 |
.k-nav{{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #afb4a9;margin-bottom:8px}}
|
| 58 |
+
.gradio-container .k-nav a,.gradio-container .k-linklist a,.gradio-container .k-share a,.gradio-container .k-footer a{{text-decoration:none!important}}
|
| 59 |
+
.gradio-container .k-linklist a:hover,.gradio-container .k-footer a:hover{{text-decoration:underline!important;text-underline-offset:3px}}
|
| 60 |
+
.k-nav a{{color:var(--k-ink)}}.k-nav .k-links{{display:flex;align-items:center;gap:22px;flex-wrap:wrap}}
|
| 61 |
.k-btn{{border:1px solid var(--k-line);background:#fff;padding:9px 14px;border-radius:3px;text-decoration:none;display:inline-block;color:var(--k-ink)}}
|
| 62 |
.k-btn.primary{{background:var(--k-navy);color:#fff!important;border-color:var(--k-navy)}}.k-btn.primary:hover{{background:#24475a}}.k-btn.primary *{{color:#fff!important}}
|
| 63 |
.k-hero{{max-width:750px;margin:22px 0 12px}}.k-hero h1{{font-size:34px;letter-spacing:-1px;line-height:1.2;margin:4px 0 6px;font-weight:500}}.k-hero p{{margin:6px 0 10px;color:var(--k-muted)}}
|
| 64 |
.k-hero .k-linklist{{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}}
|
| 65 |
+
.k-grader{{background:var(--k-sage);border:1px solid #bdcbbb;padding:14px 18px 10px;margin:12px 0 18px}}.k-grader h3{{margin:0 0 2px;font-size:19px;font-weight:500}}.k-grader p{{margin:2px 0 4px;font-size:13px;color:var(--k-muted)}}
|
| 66 |
.k-section{{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:20px 0 4px}}.k-section h2{{font-size:24px;letter-spacing:-.5px;margin:0;font-weight:500}}
|
| 67 |
|
| 68 |
.k-kpis{{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--k-line);margin:12px 0 16px}}
|
|
|
|
| 70 |
.k-kpis strong{{display:block;font-size:26px;font-weight:500;line-height:1.2}}.k-kpis span{{font-size:12px;color:var(--k-muted)}}
|
| 71 |
|
| 72 |
.k-cards{{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}}
|
| 73 |
+
.k-card{{background:#fff;border:1px solid var(--k-line);padding:14px 16px;min-width:0;display:flex;flex-direction:column}}
|
| 74 |
+
.k-card h3{{font-size:20px;margin:6px 0 2px;font-weight:500}}
|
| 75 |
.k-pill{{display:inline-block;align-self:flex-start;padding:4px 9px;font-size:12px;border:0}}
|
| 76 |
.k-pill.review{{background:#fbedd4;color:#70501d!important}}.k-pill.pass{{background:#e8f0e9;color:#375b44!important}}.k-pill.blocked{{background:#f3dcd8;color:#6b2a22!important}}.k-pill.incomplete{{background:#ebebe6;color:#4b4f49!important}}
|
| 77 |
+
.k-card-id{{font:11px 'IBM Plex Mono',monospace;overflow-wrap:anywhere;color:var(--k-muted)}}
|
| 78 |
+
.k-score{{margin:8px 0 4px;border-bottom:1px solid var(--k-line);padding-bottom:8px}}
|
| 79 |
+
.k-score strong{{font-size:36px;font-weight:500;line-height:1.15;display:block}}.k-score strong.unestablished{{font-size:21px;margin:6px 0}}.k-score .k-small{{font-size:15px}}
|
| 80 |
+
.k-stats{{display:grid;grid-template-columns:1fr 1fr;gap:6px 9px;margin:4px 0 8px}}.k-stats strong{{display:block;font-size:20px;font-weight:500;line-height:1.2}}.k-stats span{{font-size:12px;color:var(--k-muted)}}
|
| 81 |
+
.k-bar{{height:8px;display:flex;margin:6px 0 4px;border-radius:3px;overflow:hidden;background:#ebebe6}}
|
| 82 |
.k-bar span{{display:block;height:100%}}.k-bar .pass{{background:var(--k-green)}}.k-bar .review{{background:var(--k-amber)}}.k-bar .blocked{{background:#a6473a}}
|
| 83 |
+
.k-counts{{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;justify-content:space-between;margin-bottom:8px}}
|
| 84 |
+
.k-note{{font-size:13px;margin:0 0 8px;line-height:1.4}}
|
| 85 |
+
.k-meta{{font:11px/1.7 'IBM Plex Mono',monospace;border-top:1px solid var(--k-line);padding-top:8px;color:var(--k-muted);margin-top:auto;overflow-wrap:anywhere}}
|
| 86 |
+
.k-actions{{display:flex;align-items:center;gap:2px;margin-top:6px;flex-wrap:wrap}}
|
| 87 |
+
.k-actions>*{{flex:0 0 auto}}.k-actions details{{display:inline-block;margin:0}}.k-actions details[open]{{flex-basis:100%}}
|
| 88 |
+
.k-icon{{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:5px;background:transparent;color:var(--k-navy)!important;cursor:pointer;list-style:none;padding:0;margin:0;vertical-align:middle;line-height:0}}
|
| 89 |
+
.k-icon svg{{display:block;margin:0}}
|
| 90 |
+
.k-icon:hover{{background:var(--k-sage)}}.k-icon:focus-visible{{outline:3px solid #dc8437;outline-offset:3px}}.k-icon::-webkit-details-marker,.k-icon::marker{{display:none;content:''}}
|
| 91 |
+
.k-card details textarea{{width:100%;box-sizing:border-box;min-height:230px;font:12px/1.5 'IBM Plex Mono',monospace;border:1px solid var(--k-line);margin-top:6px}}
|
| 92 |
.k-card details table{{width:100%;font-size:12px;border-collapse:collapse}}.k-card details td{{overflow-wrap:anywhere;padding:6px;border-bottom:1px solid var(--k-line);vertical-align:top}}
|
| 93 |
.k-foot{{font-size:12px;color:var(--k-muted);margin:4px 0 16px}}
|
| 94 |
.k-share{{border:1px solid #b5c7bb;background:var(--k-sage);padding:18px 22px;margin:22px 0 10px;display:flex;justify-content:space-between;align-items:center;gap:20px}}
|
| 95 |
.k-share h3{{margin:0 0 4px;font-size:19px;font-weight:500}}.k-share p{{margin:0;font-size:13px;color:var(--k-muted)}}
|
| 96 |
.k-footer{{font:12px 'IBM Plex Mono',monospace;color:var(--k-muted);padding:18px 0 8px;border-top:1px solid #afb4a9;margin-top:20px}}
|
| 97 |
+
@media(max-width:760px){{.k-nav{{flex-direction:column;align-items:flex-start}}.k-hero h1{{font-size:28px}}.k-kpis{{grid-template-columns:1fr 1fr}}.k-kpis>div:nth-child(2){{border-right:0}}.k-kpis>div:nth-child(-n+2){{border-bottom:1px solid var(--k-line)}}.k-cards{{grid-template-columns:1fr}}.k-share{{flex-direction:column;align-items:flex-start}}.gradio-container .k-grader .row{{flex-wrap:wrap}}.gradio-container .k-primary,.gradio-container .k-secondary{{flex:1 1 auto!important}}}}
|
| 98 |
@media(pointer:coarse){{.k-icon{{width:44px;height:44px}}}}
|
| 99 |
'''
|
| 100 |
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
def header(base):
|
| 111 |
+
"""Site chrome matching the Hub nav: Hub → Search → GitHub → Method → Audit. All external, so every link opens a new tab."""
|
| 112 |
+
ext = 'target="_blank" rel="noopener"'
|
| 113 |
+
return (f'<div class="k-html"><nav class="k-nav"><a class="k-mono" href="https://kalanos.ai/" {ext}>KALANOS <span class="k-muted">/ ROBOTICS DATASET QUALITY</span></a>'
|
| 114 |
+
f'<div class="k-links k-mono"><a href="{base}/datasets" {ext}>HUB</a><a href="{base}/search" {ext}>SEARCH</a>'
|
| 115 |
+
f'<a href="https://github.com/KalanosAI" {ext}>GITHUB ↗</a><a href="https://kalanos.ai/methodology" {ext}>METHOD</a>'
|
| 116 |
+
f'<a class="k-btn primary" href="{base}/dashboard" {ext}>Audit your dataset</a></div></nav>'
|
| 117 |
f'<div class="k-hero"><div class="k-eyebrow accent">Public dataset assessments</div><h1>Kalanos · Robotics Dataset Quality</h1>'
|
| 118 |
f'<p>Check a LeRobot dataset. Explore and share its quality report.</p>'
|
| 119 |
+
f'<div class="k-linklist"><a href="{base}/datasets" {ext}>Browse Kalanos Hub ↗</a>'
|
| 120 |
+
f'<a href="https://huggingface.co/collections/kalanosdev/robotics-dataset-quality-grades" {ext}>HF Collection ↗</a></div></div></div>')
|
| 121 |
|
| 122 |
|
| 123 |
def grader_intro():
|
| 124 |
+
return ('<div class="k-html"><h3 style="margin:0 0 2px;font-size:19px;font-weight:500">Grade your dataset</h3>'
|
| 125 |
+
'<p class="k-small k-muted" style="margin:0">Public LeRobot v2/v3 · numeric checks · video off. Up to 500 episodes, 128 MiB of numeric/metadata files, 3 minutes. Larger or private datasets: use the CLI.</p></div>')
|
| 126 |
|
| 127 |
|
| 128 |
def section(title, note=''):
|
|
|
|
| 130 |
|
| 131 |
|
| 132 |
def share_strip(base):
|
| 133 |
+
ext = 'target="_blank" rel="noopener"'
|
| 134 |
return (f'<div class="k-html"><div class="k-share"><div><h3>Make your assessment easy to share.</h3>'
|
| 135 |
f'<p>Open the card icon on any report, or the Markdown panel above, and paste the section into your HF dataset README.</p></div>'
|
| 136 |
+
f'<a class="k-btn" href="{base}/datasets" {ext}>See all reports →</a></div>'
|
| 137 |
+
f'<footer class="k-footer">KALANOS / DATA QUALITY FOR PHYSICAL AI · <a href="{base}/datasets" {ext}>Hub</a> · <a href="https://github.com/KalanosAI" {ext}>CLI</a> · <a href="https://kalanos.ai/methodology" {ext}>Method</a></footer></div>')
|
| 138 |
|
| 139 |
|
| 140 |
def kpis(payloads):
|