Spaces:
Sleeping
Sleeping
Commit History
-
chore: ready custom-UI (server.py) entry point for HF Space submission
- README front matter -> app_file: server.py, sdk_version: 6.16.0; architecture + run-locally updated for the codegen/mesh/assembly pipeline and required flags - requirements: gradio>=6.0 (gr.Server) - server.py: default port 7860 (HF Spaces standard) when PORT unset - app.py: build the legacy Blocks UI only under __main__ (server.py imports the generation core; no longer pays to build an unused UI / silences gr 6 warning) - canvas.html: Wireframe mode now shows the full triangle mesh (dim) under the structural edges Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>7b0ad37
-
feat: gradio.Server custom frontend (in-place render, no iframe reload)
Adds a parallel entrypoint (server.py) built on gradio.Server: a fully custom UI (web/index.html) served at / that calls /generate, /regenerate, /examples via the Gradio JS client and drives the canvas IN PLACE — no iframe reload, so camera/ orbit state persists and there's no white flash between shapes. Kills the postMessage->hidden-button bridge (regen/suggestion chips are normal awaited calls now). Custom shell adds a tier status pill (parametric/primitive/mesh), a cold-start affordance ('warming the model…'), and polished prompt bar/chips. Reuses app.py's generation core + flags + caches verbatim; Modal URLs stay server-side. canvas.html gains one additive postMessage listener (trikona-render/ trikona-loading) — backward-compatible, so app.py's iframe path is unchanged and still works. Verified: pages serve, gradio_client API wiring OK, suite green. FLAGGED for HF deploy: bump Space sdk_version 4.0 -> 6.x.3b4aeb9