def serve(self, host='<STR_LIT:127.0.0.1>', port=<NUM_LIT>):
from meinheld import server, middleware<EOL>server.listen((host, port))<EOL>server.run(middleware.WebSocketMiddleware(self.app))<EOL>
Serve predictions as an API endpoint.