def Predict(self, request, context): result = model.predict(request) return classification_pb2.Prediction(index=result)
def serialize(result): return classification_pb2.Prediction(index=result)