【发布时间】:2019-12-15 06:25:27
【问题描述】:
在 Google Cloud Automl - 语言分类中,我提出了以下预测请求。
我得到了 - 该模型尚未部署,因此尚不支持预测。
我们如何部署模型?如果部署模型,我看不到任何文档
我正在运行 Google Cloud Shell 中代码中显示的此命令
curl -X POST -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" -H "Content-Type: application/json" https://automl.googleapis.com/v1beta1/projects/[projectid]/locations/us-central1/models/[Modelname]:predict -d '{ “有效载荷”:{ “文本片段”:{ "content": "你的文字在这里", “mime_type”:“文本/纯文本” }, } }' { “错误”: { “代码”:400, "message": "模型未部署,因此不支持预测。", “状态”:“FAILED_PRECONDITION” } }
预期预测
【问题讨论】:
标签: google-cloud-automl google-cloud-automl-nl