我刚刚在Google vertex AI上部署了一个ML模型,它可以使用vertex AI网络界面进行预测。但是,例如,是否可以从浏览器向该部署的模型发送请求。就像这样
http://myapp.cloud.google.com/input="features of an example" 并将预测结果作为输出。谢谢
发布于 2021-09-10 05:48:57
可以,您可以使用终结点URL作为发送。
https://us-central1-aiplatform.googleapis.com/v1beta1/projects/<PROJECT_ID>/locations/us-central1/endpoints/<ENDPOINT_ID>:predict数据应该以POST参数的形式给出。
{
"instances":
[1.4838871833555929,
1.8659883497083019,
2.234620276849616,
1.0187816540094903,
-2.530890710602246,
-1.6046416850441676,
-0.4651483719733302,
-0.4952254087173721,
0.774676376873553]
}URL应该是基于区域的。
https://stackoverflow.com/questions/69117885
复制相似问题