Enhance headless rendering setup in app.py by adding necessary libraries and environment variables, and update usage instructions for 3D model preview in Chrome.
Refactor inference functions in app.py for improved structure and clarity; unify skeleton and skin inference processes, streamline imports, and enhance output handling.