Download app.py from danishk84/NovaGuide: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/spaces/danishk84/NovaGuide/resolve/main/app.py
- Command line
-
hf download hf://spaces/danishk84/NovaGuide/app.py
-
curl -L -o app.py https://huggingface.co/spaces/danishk84/NovaGuide/resolve/main/app.py
687 Bytes
| """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) | |