code: def serve(self, host='127.0.0.1', port=5000):
          
          from meinheld import server, middleware
          # self.app.run(host=host, port=port)
          server.listen((host, port))
          server.run(middleware.WebSocketMiddleware(self.app))
docs: Serve predictions as an API endpoint.