PAIR-code / what-if-tool

Source code/webpage/demos for the What-If Tool
https://pair-code.github.io/what-if-tool
Apache License 2.0
911 stars 170 forks source link

Model Resource Not Found Error #165

Open NazrulMiya opened 3 years ago

NazrulMiya commented 3 years ago

The tool throws the below error on clicking the 'Predict' button.

RuntimeError('<HttpError 404 when requesting https://ml.googleapis.com/v1/projects/nm-xai-demo/models/loan_pred_model:predict?alt=json returned "Field: name Error: The model resource: "loan_pred_model" was not found. Please create the model resource first by using \'gcloud ai-platform models create loan_pred_model\'.". Details: "[{\'@type\': \'type.googleapis.com/google.rpc.BadRequest\', \'fieldViolations\': [{\'field\': \'name\', \'description\': \'The model resource: "loan_pred_model" was not found. Please create the model resource first by using \\'gcloud ai-platform models create loan_pred_model\\'.\'}]}]">')

I have a valid project, model resource, and version resource.

jameswex commented 3 years ago

What process did you use to deploy the model to the cloud ai platform? Can you point me to the documentation? And what is the code you use to create your WitWidget with the options to connect to that model? Thanks.

jameswex commented 3 years ago

Thanks for reaching out. We'll debug the issue here: https://github.com/PAIR-code/what-if-tool/issues/165

On Mon, Jul 5, 2021 at 6:57 AM Nazrul Miya @.***> wrote:

The tool throws the below error on clicking the 'Predict' button.

RuntimeError('<HttpError 404 when requesting https://ml.googleapis.com/v1/projects/nm-xai-demo/models/loan_pred_model:predict?alt=json returned "Field: name Error: The model resource: "loan_pred_model" was not found. Please create the model resource first by using 'gcloud ai-platform models create loan_pred_model'.". Details: @.*** https://github.com/type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'name', 'description': 'The model resource: "loan_pred_model" was not found. Please create the model resource first by using \'gcloud ai-platform models create loan_pred_model\'.'}]}]">')

I have a valid project, model resource, and version resource.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PAIR-code/what-if-tool/issues/165, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYZ7TV6ZGAIPW7R5ZJGYT3TWGFZJANCNFSM472PU46A .