Spaces:
Sleeping
Sleeping
Commit History
-
Embedding Explorer: new examples, auto-execute, neighbors dropdown, zoom
- Replace 10 example queries with lecture-aligned progression - Auto-execute on example click via exp_in.change() with example guard - Add neighbors dropdown (3-12, default 4) next to radio, persisted in share URL - Zoom default camera in to (1.0, 1.0, 0.8) from (1.5, 1.5, 1.2) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c18f969
-
Add Color Math Explorer + Embedding Explorer fractional coefficients
- New tool: Color Math Explorer (tools/color-math/index.html) - 3D RBY color mixing visualization using Plotly.js - 949 xkcd color names for nearest-neighbor labeling - Trilinear interpolation for subtractive color mixing - Mirrors Embedding Explorer input parsing (commas, +/-, spaces) - Embedding Explorer: fractional coefficient support (0.5 king - 0.3 man + 0.5 woman) - Updated parser, vector math, labels, chain construction - Backward compatible — existing expressions unchanged - Updated tools/CLAUDE.md with Color Math Explorer docs - Updated L7 discussion.md with color→vectors→attention narrative arc Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>aa46db6
-
Fix Embedding Explorer vector math rendering + L7 section 1 review
- Subtraction (a-b) now renders as chain construction (a + (-b)) with gold result from origin, consistent with addition and multi-term expressions - Neighbor arrows emanate from origin instead of word tip, making "nearness" visually accurate in embedding space - Lecture 7 section 1: transcript, slides, delivery review, errata Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c17d07c
-
Embedding Explorer: @word neighbor syntax, curated examples, URL cleanup
- Added @word syntax to auto-select a word for nearest neighbors (e.g., "dog cat fish @dog" plots all 3 and shows dog's neighbors) - Curated 9 default examples showcasing neighbors, vector math, analogies - Strip @word from input field after parsing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1902762 -
Embedding Explorer: share neighbor views, clear URL after load, clean up console logs
- Share button captures selected neighbor + camera for neighbor view URLs - Share URL params cleared after load (history.replaceState) so refresh is clean - Removed console.log debug output from camera polling script Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>173f9de -
Embedding Explorer: design polish — palette, viewport border, full-width 16:9
- Vector colors now use darkest shades from design-system color palette - Lighten function looks up palette shades instead of arithmetic blending - Added visible border around 3D viewport for clear scroll boundaries - Full-width layout with 2rem padding, 16:9 aspect ratio on plot - Fixed camera persistence: use CSS-hidden textbox (visible=False prevents DOM render in Gradio 6) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>11d2455 -
Embedding Explorer: add visibility toggles, camera persistence, and share URLs
- Visibility CheckboxGroup to show/hide items without recomputing MDS (for progressive slide screenshots) - Camera persistence across re-renders via JS polling of Plotly camera state into hidden textbox - Share button encodes input, visibility, camera into URL params (Rebrandly shortening on HF Spaces, full URL on localhost) - Share URL loading restores full state including camera angle - Loading flag suppresses cascading Gradio events during share restore - Fixed Gradio 6.x: moved theme/css/head to launch(), buttons=["copy"] Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2378688 -
Embedding Explorer: pin Gradio 6.5.1 for HF Spaces parity
Local dev runs Gradio 6.5.1 but HF Space was pinned to 5.12.0, causing CSS/theme/head param mismatches. Pin both to 6.5.1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>2fa27b0
-
Embedding Explorer: remove shadow_drop/block_shadow (no _dark variant on HF)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3a52ef3 -
Embedding Explorer: force light appearance via _dark theme variants
JS execution on HF Spaces is broken (known Gradio bug #10250). Instead of trying to redirect to ?__theme=light, mirror all light mode theme values into their _dark counterparts so dark mode looks identical to light mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>779904c -
Embedding Explorer: remove invalid input_text_color theme key
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c41c0ac -
Embedding Explorer: force black input text for dark mode readability
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c810f03 -
Embedding Explorer: force light mode via gr.HTML (head doesn't execute on HF)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e2e24b5 -
Embedding Explorer: all params in constructor for HF Gradio compat
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f0dc59b -
Embedding Explorer: theme in constructor, css/head in launch() for HF compat
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e9c1ef7 -
Embedding Explorer: unified interface, geometric vector construction, Gradio 6 fixes
- Merged Explore + Vector Math tabs into single input (words and/or expressions) - Expressions show geometric construction in 3D MDS space (gold arrows) - Labels positioned beside arrows (perpendicular offset) with matching colors - MDS collinearity fix: invisible helper words for < 3 inputs - Layout: input + examples above plot, neighbors below - Gradio 6: theme/css/head moved to launch(), pandas import order fix - Purple-themed examples and radio buttons via elem_classes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>6de6e0f -
Embedding Explorer: 3B1B-style arrows, floor grid, fast model cache
- Replace thin lines + big dots with thick vector arrows (Mesh3d arrowheads) - Add z=0 floor grid with origin axes (remove Plotly bounding box grid) - Generalize add_arrow() to support start point + dash style - Remove all marker dots (arrows + labels are the visuals now) - Cache GloVe model in native binary format for ~10x faster startup - Add .gitignore for .cache/ and __pycache__/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c02e2e0 -
Embedding Explorer: annotations fix, MDS normalization, light mode, design polish
- Switch from Scatter3d text to scene annotations (fixes Plotly WebGL text sizing bug) - Normalize MDS output to [-1,1] with fixed axis ranges for consistent label sizes - Force light mode via head script redirect - Dark purple buttons (#63348d), light purple block backgrounds (#f3f0f7) - Remove button-like styling from Gradio labels - Per-word palette colors with lighter neighbor shades - Add Lecture 7 design discussion (discussion.md) - Add Embedding Explorer section to tools/CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d07fd1f
-
Embedding Explorer: add retry logic for GloVe model download
HF Spaces has transient DNS failures during startup. Retry up to 5 times with exponential backoff to handle "Temporary failure in name resolution". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4ba6161 -
Embedding Explorer: add vector lines from origin + 3D grid axes
- Words shown as vectors (lines from origin to point), not just dots - Subtle purple gridlines and zero-lines for 3D depth perception - Aspect mode set to cube for consistent proportions - Vector lines in both Explore and Arithmetic tabs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1afc48c -
Embedding Explorer: initial HuggingFace Space
Two-tab Gradio app for Lecture 7 (Embeddings & Transformers): - Explore: 3D word visualization with click-to-show neighbors - Vector Math: word arithmetic (king - man + woman ≈ queen) GloVe 300d embeddings, Plotly 3D, configurable examples via env vars. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f79d011