google-cloud-aiplatform version: pip show google-cloud-aiplatform
Steps to reproduce
after importing a Keras model to Vertex AI and deploying it to an endpoint, I follow link to Sample Request that gives details on how to get a prediction from the endpoint https://screenshot.googleplex.com/4RRUZXwXmgwjpaN
Environment details
google-cloud-aiplatform
version:pip show google-cloud-aiplatform
Steps to reproduce
predict_custom_trained_model_sample
functionpredict_custom_trained_model_sample
function from https://github.com/googleapis/python-aiplatform/blob/main/samples/snippets/prediction_service/predict_custom_trained_model_sample.py to call the model I deployed to a Vertex AI endpoint. Code for this module is here: https://github.com/ryanmark1867/deep_learning_web_deployment/blob/master/flask_endpoint_deploy.pypredict_custom_trained_model_sample
function, I needed to update it to include a return statement:return(predictions)
predict_custom_trained_model_sample
function at https://github.com/googleapis/python-aiplatform/blob/main/samples/snippets/prediction_service/predict_custom_trained_model_sample.py needs to be updated to include areturn(predictions)
statement at the end.Code example
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!