Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download studio/static/index.html from TechTush/needlepoint: direct link, hf CLI and curl.
- Browser
- Download file 21.2 kB
-
https://huggingface.co/spaces/TechTush/needlepoint/resolve/main/studio/static/index.html
- Command line
-
hf download hf://spaces/TechTush/needlepoint/studio/static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/TechTush/needlepoint/resolve/main/studio/static/index.html
21.2 kB
| <html lang="en" data-theme="dark"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="color-scheme" content="dark light"> | |
| <meta name="description" content="NEEDLEPOINT Studio: generate certified visual evaluation tasks. Every answer, proven from the pixels."> | |
| <title>NEEDLEPOINT Studio</title> | |
| <link rel="icon" href="/static/brand/favicon.svg" type="image/svg+xml"> | |
| <link rel="preload" href="/static/fonts/np-sans.woff2" as="font" type="font/woff2" crossorigin> | |
| <link rel="preload" href="/static/fonts/np-sans-bold.woff2" as="font" type="font/woff2" crossorigin> | |
| <link rel="stylesheet" href="/static/styles.css"> | |
| <script> | |
| /* Apply the saved theme before first paint (no flash). */ | |
| try { var t = localStorage.getItem("np-theme"); if (t === "light" || t === "dark") document.documentElement.dataset.theme = t; } catch (e) {} | |
| </script> | |
| <script type="module" src="/static/app.js"></script> | |
| </head> | |
| <body> | |
| <a class="skip-link" href="#main" id="skip-link">Skip to content</a> | |
| <header class="topbar" id="topbar"> | |
| <div class="topbar-inner"> | |
| <a class="brand" href="#/" aria-label="NEEDLEPOINT Studio, home"> | |
| <img class="brand-wordmark brand-on-dark" src="/static/brand/logo-wordmark-dark.svg" alt="" width="118" height="28"> | |
| <img class="brand-wordmark brand-on-light" src="/static/brand/logo-wordmark.svg" alt="" width="118" height="28"> | |
| <span class="brand-studio">Studio</span> | |
| </a> | |
| <button class="nav-toggle icon-btn" id="nav-toggle" type="button" aria-expanded="false" aria-controls="primary-nav"> | |
| <svg aria-hidden="true" viewBox="0 0 24 24" width="20" height="20"><path d="M4 7h16M4 12h16M4 17h16" stroke="currentColor" stroke-width="2" stroke-linecap="round" fill="none"/></svg> | |
| <span>Menu</span> | |
| </button> | |
| <nav class="primary-nav" id="primary-nav" aria-label="Primary"> | |
| <ul> | |
| <li><a href="#/factory" data-route="factory">Factory</a></li> | |
| <li><a href="#/lab" data-route="lab">Verifier Lab</a></li> | |
| <li><a href="#/map" data-route="map">Capability Map</a></li> | |
| <li><a href="#/ship" data-route="ship">Ship it</a></li> | |
| <li><a href="#/how" data-route="how">How it works</a></li> | |
| </ul> | |
| </nav> | |
| <button class="theme-toggle icon-btn" id="theme-toggle" type="button" aria-pressed="false"> | |
| <svg class="i-sun" aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><circle cx="12" cy="12" r="4.2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 2.5v2.2M12 19.3v2.2M2.5 12h2.2M19.3 12h2.2M5.3 5.3l1.6 1.6M17.1 17.1l1.6 1.6M5.3 18.7l1.6-1.6M17.1 6.9l1.6-1.6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg> | |
| <svg class="i-moon" aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><path d="M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></svg> | |
| <span class="theme-toggle-label">Light theme</span> | |
| </button> | |
| </div> | |
| </header> | |
| <main id="main" tabindex="-1"> | |
| <!-- ======================================================== HOME --> | |
| <section class="view view-home" id="view-home" data-view="home" aria-labelledby="home-title"> | |
| <div class="hero"> | |
| <div class="hero-copy"> | |
| <p class="eyebrow"><span class="dot-live" aria-hidden="true"></span> Innodata AI Hackathon 2026 · Track 2 · Visual Task Factory</p> | |
| <h1 id="home-title" tabindex="-1" class="hero-title">Certified visual tasks.<br><span class="grad-text">Every answer, proven from the pixels.</span></h1> | |
| <p class="hero-lede">NEEDLEPOINT generates evaluation tasks for multimodal models from industrial control cabinets: analog dials, linear gauges, 7-segment displays, alarm bands and wiring diagrams. Ground truth comes first, and a task only ships if an image-only decoder re-derives the answer from the rendered pixels and every validation gate passes.</p> | |
| <div class="hero-ctas"> | |
| <a class="btn btn-primary btn-lg" href="#/factory">Open the factory | |
| <svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><path d="M5 12h13M13 6l6 6-6 6" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg></a> | |
| <a class="btn btn-ghost btn-lg" href="#/map">See what models get wrong</a> | |
| </div> | |
| </div> | |
| <div class="hero-visual" id="hero-visual"><!-- hero gauge SVG is built by app.js --></div> | |
| </div> | |
| <ul class="stats" id="home-stats" aria-label="Headline evidence"> | |
| <li class="stat skeleton-stat"><span class="skeleton sk-num"></span><span class="skeleton sk-line"></span></li> | |
| <li class="stat skeleton-stat"><span class="skeleton sk-num"></span><span class="skeleton sk-line"></span></li> | |
| <li class="stat skeleton-stat"><span class="skeleton sk-num"></span><span class="skeleton sk-line"></span></li> | |
| <li class="stat skeleton-stat"><span class="skeleton sk-num"></span><span class="skeleton sk-line"></span></li> | |
| </ul> | |
| <div class="pillars"> | |
| <article class="card pillar"> | |
| <div class="pillar-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="22" height="22"><path d="M4 18h16M6 18V9m6 9V5m6 13v-6" stroke="currentColor" stroke-width="2" stroke-linecap="round" fill="none"/></svg></div> | |
| <h2>Ground truth first</h2> | |
| <p>Each task starts as a typed spec with a known answer. The image is rendered from the spec, then a question program turns the spec into a question and an answer key.</p> | |
| </article> | |
| <article class="card pillar"> | |
| <div class="pillar-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="22" height="22"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="M16 16l4.5 4.5M8.5 11l1.8 1.8 3.4-3.6" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg></div> | |
| <h2>Proven from the pixels</h2> | |
| <p>An image-only decoder reads every needle, fill level and digit back from the PNG. If it disagrees with the spec, the task is rejected. You can watch the proof draw itself in the Inspector.</p> | |
| </article> | |
| <article class="card pillar"> | |
| <div class="pillar-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="22" height="22"><path d="M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6l7-3z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M9 12l2 2 4-4" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg></div> | |
| <h2>Mutation-tested gates</h2> | |
| <p>We planted six kinds of defect (hidden needles, illegible labels, wrong answer keys, leaks) and the gates caught every one. Try it yourself in the Verifier Lab.</p> | |
| </article> | |
| </div> | |
| <aside class="finding card" aria-labelledby="finding-title"> | |
| <div> | |
| <p class="eyebrow">Headline finding</p> | |
| <h2 id="finding-title">Frontier models read gauges. Wiring separates them.</h2> | |
| <p>Across 456 certified tasks and 5 models, instrument reading is nearly solved at the frontier, but tracing a wire through crossings is not: Claude Opus falls to 6 of 16 at the hardest wiring level. Cheaper models fail in attributable ways, such as reporting a reading on a gauge whose needle is hidden.</p> | |
| </div> | |
| <a class="btn btn-ghost" href="#/map">Open the Capability Map</a> | |
| </aside> | |
| </section> | |
| <!-- ======================================================== FACTORY --> | |
| <section class="view" id="view-factory" data-view="factory" aria-labelledby="factory-title" hidden> | |
| <header class="view-head"> | |
| <p class="eyebrow">01 · Factory</p> | |
| <h1 id="factory-title" tabindex="-1">Generate a certified batch</h1> | |
| <p class="lede">Pick a family and difficulty, choose a seed, and generate. Every task you see has passed every gate. The same seed always produces byte-identical images.</p> | |
| </header> | |
| <form class="card controls" id="gen-form" novalidate> | |
| <fieldset class="ctl"> | |
| <legend>Family</legend> | |
| <div class="segmented"> | |
| <label><input type="radio" name="family" value="instruments" checked><span>Instruments</span></label> | |
| <label><input type="radio" name="family" value="wiring"><span>Wiring</span></label> | |
| </div> | |
| </fieldset> | |
| <div class="ctl" id="profile-ctl"> | |
| <label for="profile" class="ctl-label">Profile</label> | |
| <div class="select-wrap"><select id="profile" name="profile"> | |
| <option value="industrial">Industrial</option> | |
| <option value="healthcare">Healthcare</option> | |
| </select></div> | |
| </div> | |
| <fieldset class="ctl ctl-wide"> | |
| <legend>Difficulty <span class="hint" id="diff-hint">(select one or more)</span></legend> | |
| <div class="chips" id="diff-chips" aria-describedby="diff-hint"></div> | |
| </fieldset> | |
| <div class="ctl ctl-num"> | |
| <label for="count" class="ctl-label" id="count-label">Tasks</label> | |
| <input id="count" name="n" type="number" min="1" max="48" value="8" inputmode="numeric" class="input input-num"> | |
| </div> | |
| <div class="ctl ctl-seed"> | |
| <label for="seed" class="ctl-label">Seed</label> | |
| <div class="seed-row"> | |
| <input id="seed" name="seed" type="number" min="0" max="999999999" placeholder="random" inputmode="numeric" class="input input-num" aria-describedby="seed-hint"> | |
| <button type="button" class="icon-btn" id="dice-btn" aria-label="Random seed" title="Random seed"> | |
| <svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><rect x="4" y="4" width="16" height="16" rx="3.5" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="9" cy="9" r="1.4" fill="currentColor"/><circle cx="15" cy="15" r="1.4" fill="currentColor"/><circle cx="15" cy="9" r="1.4" fill="currentColor"/><circle cx="9" cy="15" r="1.4" fill="currentColor"/><circle cx="12" cy="12" r="1.4" fill="currentColor"/></svg> | |
| </button> | |
| <button type="button" class="icon-btn" id="seed-copy" aria-label="Copy seed" title="Copy seed"> | |
| <svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><rect x="8" y="8" width="12" height="12" rx="2.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" fill="none" stroke="currentColor" stroke-width="2"/></svg> | |
| </button> | |
| </div> | |
| <p class="hint" id="seed-hint">Same seed, same bytes.</p> | |
| </div> | |
| <div class="ctl ctl-go"> | |
| <button type="submit" class="btn btn-primary btn-lg" id="gen-btn"> | |
| <svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><path d="M13 3L5 13h6l-1 8 8-10h-6l1-8z" fill="currentColor"/></svg> | |
| Generate | |
| </button> | |
| </div> | |
| </form> | |
| <p class="sr-only" id="gen-status" role="status" aria-live="polite"></p> | |
| <div class="pipeline card" id="pipeline" hidden> | |
| <ol class="pipe-stages" id="pipe-stages" aria-label="Pipeline stages"></ol> | |
| <div class="pipe-gates"> | |
| <p class="pipe-gates-title">Validation gates</p> | |
| <ol class="gate-lamps" id="gate-lamps"></ol> | |
| </div> | |
| </div> | |
| <div class="run-bar" id="run-bar"> | |
| <div class="run-pick"> | |
| <label for="run-select" class="ctl-label">Browsing</label> | |
| <div class="select-wrap"><select id="run-select"></select></div> | |
| </div> | |
| <div class="run-meta" id="run-meta"></div> | |
| </div> | |
| <div class="funnel card" id="funnel" hidden></div> | |
| <div class="error-box" id="factory-error" role="alert" hidden></div> | |
| <ul class="task-grid" id="task-grid" aria-label="Certified tasks"></ul> | |
| </section> | |
| <!-- ======================================================== LAB --> | |
| <section class="view" id="view-lab" data-view="lab" aria-labelledby="lab-title" hidden> | |
| <header class="view-head"> | |
| <p class="eyebrow">02 · Verifier Lab</p> | |
| <h1 id="lab-title" tabindex="-1">We mutation-test our own benchmark.</h1> | |
| <p class="lede">A gate that never fails proves nothing. Pick a defect and we plant it into a fresh candidate, then run the full gate battery. Watch which gate catches it.</p> | |
| </header> | |
| <ul class="fault-grid" id="fault-grid" aria-label="Defects to plant"></ul> | |
| <p class="sr-only" id="lab-status" role="status" aria-live="polite"></p> | |
| <div class="error-box" id="lab-error" role="alert" hidden></div> | |
| <div class="lab-stage card" id="lab-stage" hidden></div> | |
| <div class="card recall-card"> | |
| <h2>Planted-defect recall, final evaluation</h2> | |
| <p class="muted">Share of planted defects caught by the gate designed for them.</p> | |
| <div id="recall-table"></div> | |
| </div> | |
| </section> | |
| <!-- ======================================================== CAPABILITY MAP --> | |
| <section class="view" id="view-map" data-view="map" aria-labelledby="map-title" hidden> | |
| <header class="view-head"> | |
| <p class="eyebrow">03 · Capability Map</p> | |
| <h1 id="map-title" tabindex="-1">What models get right, and how they fail</h1> | |
| <p class="lede">Measured on the frozen final evaluation: 456 certified tasks, 5 models, image mode. Intervals are 95% Wilson confidence intervals.</p> | |
| </header> | |
| <div class="error-box" id="map-error" role="alert" hidden></div> | |
| <div class="map-grid" id="map-grid"> | |
| <div class="card chart-card skeleton-card"><span class="skeleton sk-title"></span><span class="skeleton sk-block"></span></div> | |
| <div class="card chart-card skeleton-card"><span class="skeleton sk-title"></span><span class="skeleton sk-block"></span></div> | |
| </div> | |
| </section> | |
| <!-- ======================================================== SHIP IT --> | |
| <section class="view" id="view-ship" data-view="ship" aria-labelledby="ship-title" hidden> | |
| <header class="view-head"> | |
| <p class="eyebrow">04 · Ship it</p> | |
| <h1 id="ship-title" tabindex="-1">Export, estimate, integrate</h1> | |
| <p class="lede">Generation is free and local. Evaluating models is what costs money; estimate it before you run.</p> | |
| </header> | |
| <div class="ship-grid"> | |
| <form class="card estimator" id="est-form" novalidate aria-labelledby="est-title"> | |
| <h2 id="est-title">Evaluation cost estimator</h2> | |
| <div class="est-n"> | |
| <label for="est-n-range" class="ctl-label">Tasks to evaluate</label> | |
| <div class="est-n-row"> | |
| <input type="range" id="est-n-range" min="0" max="100" step="1" value="50" aria-describedby="est-n-out" aria-valuetext="1,000 tasks"> | |
| <input type="number" id="est-n" class="input input-num" min="1" max="10000000" value="1000" aria-label="Number of tasks"> | |
| </div> | |
| <output id="est-n-out" class="hint" for="est-n-range est-n"></output> | |
| </div> | |
| <fieldset class="ctl"> | |
| <legend>Models</legend> | |
| <div class="check-grid" id="est-models"></div> | |
| </fieldset> | |
| <div class="est-opts"> | |
| <fieldset class="ctl"> | |
| <legend>Reasoning</legend> | |
| <div class="segmented"> | |
| <label><input type="radio" name="reasoning" value="low" checked><span>Low</span></label> | |
| <label><input type="radio" name="reasoning" value="high"><span>High</span></label> | |
| </div> | |
| </fieldset> | |
| <div class="ctl"> | |
| <span class="ctl-label" id="batch-label">Batch API</span> | |
| <button type="button" class="switch" id="est-batch" role="switch" aria-checked="false" aria-labelledby="batch-label batch-desc"><span class="switch-track" aria-hidden="true"><span class="switch-thumb"></span></span><span id="batch-desc">50% off</span></button> | |
| </div> | |
| </div> | |
| <div class="est-result" id="est-result" aria-live="polite"></div> | |
| </form> | |
| <div class="ship-side"> | |
| <div class="card export-card" aria-labelledby="export-title"> | |
| <h2 id="export-title">Export a run</h2> | |
| <p class="muted" id="export-run">Loading runs…</p> | |
| <div class="select-wrap"><select id="export-select" aria-label="Run to export"></select></div> | |
| <div class="export-btns" id="export-btns"></div> | |
| <p class="hint">JSONL includes answers: keep it away from models under test.</p> | |
| </div> | |
| <div class="card code-card" aria-labelledby="code-title"> | |
| <div class="code-head"> | |
| <h2 id="code-title">Use it from code</h2> | |
| <a class="btn btn-ghost btn-sm" href="/docs" target="_blank" rel="noopener">Interactive API docs</a> | |
| </div> | |
| <div class="code-wrap"> | |
| <pre class="code" id="curl-snippet" tabindex="0" aria-label="curl example"></pre> | |
| <button type="button" class="btn btn-sm btn-ghost copy-code" id="copy-curl">Copy</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- ======================================================== HOW IT WORKS --> | |
| <section class="view" id="view-how" data-view="how" aria-labelledby="how-title" hidden> | |
| <header class="view-head"> | |
| <p class="eyebrow">05 · How it works</p> | |
| <h1 id="how-title" tabindex="-1">From a seed to a certificate</h1> | |
| <p class="lede">Every task travels the same audited path. Nothing reaches a model under test until it has been derived twice, once from the spec and once from the pixels.</p> | |
| </header> | |
| <figure class="card diagram-card"> | |
| <div id="how-diagram" class="how-diagram"></div> | |
| <figcaption class="sr-only">Pipeline: seed, spec, render, question program, validation gates including the image-only decoder (failures go to the rejection log), answer-flip twin, certificate, export to Harbor or JSONL, evaluation.</figcaption> | |
| </figure> | |
| <div class="how-grid"> | |
| <article class="card how-card"> | |
| <h2>Validity: derived twice, audited once more</h2> | |
| <p>The answer key comes from the spec. An independent image-only decoder re-derives it from the PNG (needle angle, fill level, segment patterns, OCR of scale labels, wire tracing). A task ships only when both agree within tolerance and a decision margin keeps it away from thresholds. A human audit pilot scored 27 of 30.</p> | |
| </article> | |
| <article class="card how-card"> | |
| <h2>Reproducibility</h2> | |
| <p>Rendering is deterministic: the same seed gives a byte-identical image, checked on every task by a re-render gate and verified 696/696 across the evidence sets. Every certificate records the generator version, seed, spec hash and image SHA-256.</p> | |
| </article> | |
| <article class="card how-card"> | |
| <h2>Meaningful variation</h2> | |
| <p>Variation is structural, not cosmetic: instrument kind and count, scale family, same-scale distractors, reasoning steps, wire count and crossings. Each task carries a variation signature, and answer-flip twins change one minimal thing so the answer must change.</p> | |
| </article> | |
| <article class="card how-card"> | |
| <h2>Honesty notes</h2> | |
| <p>These are synthetic renders, not photographs of real cabinets. The decoder was written by the same developer who wrote the renderer, so it shares their semantics; that is why a human audit is the third check. Red is reserved for alarms, so colour itself never carries a hidden cue.</p> | |
| </article> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- ======================================================== INSPECTOR --> | |
| <div class="drawer-backdrop" id="drawer-backdrop" hidden></div> | |
| <div class="drawer" id="inspector" role="dialog" aria-modal="true" aria-labelledby="insp-title" hidden> | |
| <div class="drawer-head"> | |
| <div class="drawer-title-wrap"> | |
| <p class="eyebrow" id="insp-eyebrow">Inspector</p> | |
| <h2 id="insp-title" tabindex="-1">Task</h2> | |
| </div> | |
| <div class="drawer-actions"> | |
| <span class="kbd-hint" aria-hidden="true"><kbd>←</kbd><kbd>→</kbd> navigate · <kbd>P</kbd> proof · <kbd>Esc</kbd> close</span> | |
| <button type="button" class="icon-btn" id="insp-prev" aria-label="Previous task"><svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><path d="M15 5l-7 7 7 7" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg></button> | |
| <span class="insp-pos" id="insp-pos" aria-live="polite"></span> | |
| <button type="button" class="icon-btn" id="insp-next" aria-label="Next task"><svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><path d="M9 5l7 7-7 7" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg></button> | |
| <button type="button" class="icon-btn" id="insp-close" aria-label="Close inspector"><svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"><path d="M6 6l12 12M18 6L6 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg></button> | |
| </div> | |
| </div> | |
| <div class="drawer-body" id="insp-body"></div> | |
| </div> | |
| <div class="toast" id="toast" role="status" aria-live="polite"></div> | |
| <footer class="footer"> | |
| <div class="footer-inner"> | |
| <img class="footer-mark" src="/static/brand/logo-mark.svg" alt="" width="28" height="28"> | |
| <p><strong>NEEDLEPOINT Studio</strong> <span id="footer-version">v0.1.0</span></p> | |
| <p class="muted">Runs fully offline · No analytics · MIT licence</p> | |
| <p class="footer-links"><a href="/docs">API docs</a> · <a href="#/how">How it works</a></p> | |
| </div> | |
| </footer> | |
| </body> | |
| </html> | |