Spaces:
Sleeping
Sleeping
Commit History
-
Prepare demos for public hosting on a Hugging Face Docker Space
Clamp every size parameter in the demo API (samples, spins, belt segments, stars, training points, steps per call) and reject request bodies over 64 KB, so a public server cannot be asked for unbounded work. Add a Dockerfile (CPU-only torch, non-root uid 1000, port 7860), a .dockerignore, and the Space front matter in README.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>dee8943 -
Add interactive three.js demos driven live by spinor_lib
A stdlib-only HTTP server (demos/server.py) routes POST /api/<name> to handlers in demos/api.py that call the library and return JSON; the browser pages under demos/web only render. Five scenes: Bloch sphere and the 720° double cover (with a precession cloud), Dirac's belt trick via a homotopy on unit quaternions, relativistic aberration of the sky through SL(2,C) acting on Weyl spinors, two-qubit entanglement via partial traces, and a QuaternionRotation learning a hidden rotation one Adam step at a time. Includes tests for the handlers (aberration checked against the textbook angle and Doppler formulas, concurrence and reduced Bloch lengths against closed forms) and a launch config for the preview server. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>cdf8b2d