Spaces:
Sleeping
Sleeping
Commit History
-
Gradio UI polish: clean header, MPC controller, conversational chatbox
Three user-requested changes on the Gradio frontend: 1. Header. Drop the developer-facing build-ID subtitle ('Build gradio-2026-05-29-a · scientific-core import OK · runs locally and on Hugging Face Spaces (16 GB CPU worker)') and the 'Gradio frontend' suffix. The page now opens with just 'CDPR Simulator' and a one-paragraph scientific summary covering kinematics, the wrench / tension-distribution QP, rigid-body dynamics, three constitutive cable models (massless / Kelvin-Voigt / Irvine + hybrid), PD/MPC feedback, parametric trajectories, and the Phase-2 PINN/MLP/PPO/SAC data layer. A new how-to card directly under it explains the three tabs in plain language. The BUILD_ID constant is kept for manifests and surfaced in the per-run Console output, not the page header. 2. CSS. Hand-tuned styling for a reserved, instrument-style look (no glass, no rainbows, no animations): slate gradient header with monospace accents on technical terms, left-bor…b6e3041 -
Move Gradio theme to launch() per Gradio 6.0 deprecation
The build succeeded but the worker log carried: UserWarning: The parameters have been moved from the Blocks constructor to the launch() method in Gradio 6.0: theme. Gradio 6.0 deprecates the Blocks(theme=...) form in favour of launch(theme=...). Moved the theme accordingly: * gradio_app.py: Blocks() no longer takes theme; the __main__ block passes theme=gr.themes.Soft() to launch() for the local 'python gradio_app.py' workflow. * app.py: the HF Spaces entrypoint also passes theme=gr.themes.Soft() to launch(), so the deployed Space gets the Soft theme too. Locally: 'python gradio_app.py' still starts at http://127.0.0.1:7860 with the Soft theme. On HF: next rebuild has zero deprecation warnings. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>eafcb90
-
Prepare HF Space deployment
f556852