def serve(self, host: str = "127.0.0.1", port: int = 8000):
        """Start a server to serve a composition.

        Parameters
        ----------
        host
            host address to run the server on
        port
            port number to expose the running server on

        """
        if FLASH_DISABLE_SERVE:
            return None

        if not self.TESTING:  # pragma: no cover
            app = self.http_app()
            uvicorn.run(app, host=host, port=port)
        return self.http_app()
Start a server to serve a composition.

        Parameters
        ----------
        host
            host address to run the server on
        port
            port number to expose the running server on

        
src/flash/core/serve/server.py