We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5156e9 commit bc2c7e0Copy full SHA for bc2c7e0
automl/tables/predict.v1beta1.js
@@ -19,6 +19,8 @@ async function main(
19
modelId = 'YOUR_MODEL_ID',
20
inputs = '[{"numberValue": 1}, {"stringValue": "value"}]'
21
) {
22
+ inputs = JSON.parse(inputs);
23
+
24
// [START automl_tables_predict]
25
26
/**
@@ -39,8 +41,6 @@ async function main(
39
41
// Get the full path of the model.
40
42
const modelFullId = automlClient.modelPath(projectId, computeRegion, modelId);
43
- inputs = JSON.parse(inputs);
-
44
async function predict() {
45
// Set the payload by giving the row values.
46
const payload = {
0 commit comments