"""NovaGuide Hugging Face Spaces entry point.""" from src.ui.gradio_app import APP_CSS, build_app from src.logging_layer.neon_client import NeonClient # Apply idempotent schema migrations before serving the application. A failed # analytics migration does not prevent the passenger assistant from starting. NEON_SCHEMA_READY = NeonClient().execute_schema() demo = build_app() if __name__ == "__main__": # Gradio SSR starts a separate Node.js process. The Hugging Face runtime log # showed that process stopping immediately after startup, so the Space uses # the stable server-rendering-disabled path for this CPU deployment. demo.launch(css=APP_CSS, ssr_mode=False)