San*_* Mn 3 google-cloud-vertex-ai
我刚刚在 Google vertex AI 上部署了一个 ML 模型,它可以使用 vertex AI Web 界面进行预测。但是是否可以从浏览器向此部署的模型发送请求。就像是
http://myapp.cloud.google.com/input="features of an example"
Run Code Online (Sandbox Code Playgroud)
并将预测作为输出。谢谢
小智 6
是的,您可以使用端点 URL 作为发送。
https://us-central1-aiplatform.googleapis.com/v1beta1/projects/<PROJECT_ID>/locations/us-central1/endpoints/<ENDPOINT_ID>:predict
Run Code Online (Sandbox Code Playgroud)
数据应按照 POST 参数给出。
{
"instances":
[1.4838871833555929,
1.8659883497083019,
2.234620276849616,
1.0187816540094903,
-2.530890710602246,
-1.6046416850441676,
-0.4651483719733302,
-0.4952254087173721,
0.774676376873553]
}
Run Code Online (Sandbox Code Playgroud)
URL 应基于区域。
| 归档时间: |
|
| 查看次数: |
7024 次 |
| 最近记录: |