Spaces:
Running
Running
Commit History
-
Merge branch 'main' of hf.co:spaces/HuggingFaceBio/carbon-demo
Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # demo.html187590e -
Footer: editorial site footer with collab credit + partner logos
Adds a multi-row site footer in demo.html (collab block with 4 partner stamps, three-column identity/resources/sections strip, legal hairline) backed by a full rewrite of assets/styles/footer.css. Drops partner artwork under img/partners/ (Hugging Face, Zhongguancun Academy, TIGEM, Federico II) plus their raw sources for traceability. Also bundles a few small fixes uncovered while wiring the footer: - demo.html banner: point Tech report to the paperswithcode landing - sandbox.js: clear the .empty placeholder when incrementalRender takes over straight from idle, so generated lines stop rendering inline - section-vep.css: allow horizontal scroll on .vep-window so the 60bp mono stack survives narrow viewports without breaking row alignment - intro/species/controls/recipe/banner CSS: footer-adjacent polish Co-authored-by: Cursor <cursoragent@cursor.com>5dfaccc -
Pareto chart: rebuild as inline SVG, add Dataset link to banner
Replaces /img/pareto.png with a self-contained SVG built from pareto/pareto_data.csv. Geometry mirrors the matplotlib reference (log-scale throughput, linear win-rate %, family badges, 275× speedup arrow, "better/faster" indicator) but the chrome is pulled back to fit the editorial blog tone: hairline frame + tick lines, JetBrains Mono tabular tick labels, mono-uppercase indicator eyebrows, and plain text data labels with a paint-order halo instead of pill boxes. Carbon points scale up + use a heavier label per the source script's HIGHLIGHT_LOGO_SCALE. Also adds a "Dataset" link (HuggingFaceBio/carbon-pretraining-corpus) to the banner resources row, between Models and Tech report so the two HF-hub resources sit together. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>0659e8b -
Intro polish: pareto chart in release rail + rewritten DNA Lab / Recipe ledes
- Release hero: move pareto throughput-vs-win-rate figure inside the green left rail so it visually belongs to the announcement; add hairline border and 640px max-width. - DNA Lab tab-lede: lead with what the model is + invite to explore, drop the "no curriculum" framing, soften the supervision claim (acknowledges species/biotype tags). - Recipe tab-lede: promote the curated data mixture to a third pillar alongside the 6-mer tokenizer and FNS loss. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>d835cbf -
Social banner: HTML-rendered OG share thumbnail (1200x630, static)
- Compose the OG share image directly in HTML/CSS using the same .carbon-banner stage as the live header — copying the rendered tile into img/thumb.png keeps the share image perfectly in sync with the product, no manual export needed. - Mark the OG tile's header with data-static so banner.js draws a single frame on it; the live demo header still animates as before. - Refactor banner.js to support multiple .carbon-banner instances and honor data-static to skip the RAF loop / observers cleanly. - Nudge the OG-only helix slightly right (translateX -18px vs -56px on wider Twitter/LinkedIn ratios) so the 1200x630 ratio keeps a clean strip of paper between the wordmark and the strand. - Drop the now-unused img/logo.png and point all SEO/OG/Twitter/JSON-LD tags in demo.html at img/thumb.png with its actual 2392x1258 export dimensions. Co-authored-by: Cursor <cursoragent@cursor.com>6ea760c -
Social banner: logo + OG contact-sheet, widened helix, refreshed SVG kit
- Bring back the 44×44 brand mark in the social-banner identity strip so the editorial card reads consistently with demo.html's hero. - Add a "logo · brand marks" contact-sheet (logo.svg, logo-square.svg, logo-square-white-background.svg, logo-rectangle.svg) below the banner stage so the page doubles as a screenshot-ready brand kit. Each tile is a 1:1 export canvas with a copy-path button. - Add a "seo · share thumbnail" tile showing the current og:image (/img/logo.png at native 1153×634) so the SEO surface lives next to the brand assets and is easy to spot when it's time to swap in a real social card screenshot. - Drop the 1px stage hairline so screenshots come out clean of chrome, and ellipsize the meta filenames when they don't fit the tile width. - Widen the helix track in the social stage (36→44%, cap 520→600) and pull the canvas further left so the strand doesn't hug the right edge of the social card on LinkedIn / HF formats. - Refresh the SVG kit: drop the pl…5645f7d -
Demo polish: SEO/AI-agent discoverability + new hexagonal logo + §1 helix per-letter fade + sandbox empty-state
- Discoverability surface: robots.txt, sitemap.xml, llms.txt, JSON-LD/OG/Twitter metadata in demo.html; app.py templates demo + social-banner with {{SITE_URL}} resolved per-request from X-Forwarded-*; Dockerfile COPYs the new files. - New hexagonal Carbon mark (img/logo.svg) plus black square/rectangle lockups used by the social-banner contact sheet. - social-banner: noindex, doubles as a brand contact sheet under the stage with native-size square and rectangle lockups for one-shot screenshots. - §1 intro helix: per-letter depth-aware fade — front-strand letter at each crossing stays readable while its back-strand sibling recedes, instead of both going equally ghosted. - Sandbox empty-state: centered, white-on-white, lighter contrast so the placeholder reads as a hint rather than a block. - New §X efficiency section script wired into demo.html. Co-authored-by: Cursor <cursoragent@cursor.com>1d5de93 -
Demo polish: colorblind-safe §6 strand; §5 completion-fold; §1 helix occlusion; §7 score chip; logo SVG; §8 evals refresh
- §6 UMAP: strand palette switched from green/red to Okabe-Ito blue/vermillion so the +/- coloring survives deuteranopia and protanopia (the previous pair collapsed to two near-identical grays under both common CVD types). - §5 Folding: new completion-fold pipeline (75% CDS prompt → 25% predicted → fold the C-term tail with ESMFold); mrna-info row reads the prompt/predict ratio for completion-fold genes, falls back to the original genomic→mRNA→ORF chain for legacy fixtures. genes.json gains the fold_setup / fold_example fields and a sections[] tag to scope the showcase set per panel. - §1 Intro: helix occlusion now splits each strand at depth-zero PEAKS rather than centerline crossings, so the "behind" arcs alternate between upper and lower lobes and rungs occlude correctly under the front strand. Edge-touching arcs render solid (no ghosted 5'/3' label ties). - §7 Tree: agreement-score chip redesigned as a typographic stat block — percentage in Carbon green + raw …f5d37e0
-
Add tabbed Demo / Model / Sandbox page (default = Sandbox)
New /demo route serves a single-page app with three tabs: - Demo: 4 interactive sections (gene completion, VEP, likelihood track, cross-species) plus folding/UMAP placeholders - Model: tokenizer, training objective (CE→FNS), data, architecture - Sandbox: the existing DNA continuation playground (default tab) Server-side: new /score endpoint (echo-logprobs), /genes /variants /species data routes, /img static mount, and left-padding for prompts that aren't a multiple of 6 bases (avoids phantom-A artifacts at the prompt boundary). Includes data fetchers (Ensembl REST) for genes / variants / species and a precompute script that bakes per-token logprobs and ref-vs-alt window scores into the JSON files so the page renders instantly without round-tripping the inference endpoint on first paint. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>971b586