【问题标题】:Sending http request Google Vertex AI end point发送 http 请求 Google Vertex AI 端点
【发布时间】:2021-11-06 02:27:01
【问题描述】:

我刚刚在 Google vertex AI 上部署了一个 ML 模型,它可以使用 vertex AI Web 界面进行预测。但是是否可以从浏览器发送请求,例如,发送到这个部署的模型。类似的东西

http://myapp.cloud.google.com/input="features of an example" 

并将预测作为输出。 谢谢

【问题讨论】:

    标签: google-cloud-vertex-ai


    【解决方案1】:

    是的,您可以使用端点 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 应该是基于区域的。

    【讨论】:

      猜你喜欢
      • 2023-02-17
      • 2021-12-02
      • 2022-09-27
      • 2023-01-17
      • 1970-01-01
      • 2022-08-03
      • 2022-11-11
      • 1970-01-01
      • 2015-04-26
      相关资源
      最近更新 更多