Slide 27
Slide 27 text
curlͰࢼ͢
curl -X POST
\
-H "Authorization: Bearer $(gcloud auth print-access-token)"
\
-H "Content-Type: application/json"
\
https://asia-northeast1-aiplatform.googleapis.com/v1/projects/${PROJECT_ID}/locations/asia-northeast1/endpoints/${ENDPOINT_ID}:predict
\
-d “@${INPUT_DATA_FILE}
"
{
"predictions":
[
{
"classes":
[
"1"
,
"2
"
]
,
"scores":
[
0.98835468292236328
,
0.0116453049704432
5
]
}
]
,
"deployedModelId": "8383556259466444800"
,
"model": "projects/1066851579090/locations/asia-northeast1/models/6083061274810253312"
,
"modelDisplayName": "sample_tabular_dataset_model
"
}