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