From 4350e586a7573ebeadfa8b4c537cf1a668fb10f9 Mon Sep 17 00:00:00 2001 From: sitalakshmi Date: Mon, 21 Oct 2024 12:14:10 -0400 Subject: [PATCH] update console log --- ai-platform/snippets/batch-prediction/batch-predict-bq.js | 2 +- ai-platform/snippets/batch-prediction/batch-predict-gcs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ai-platform/snippets/batch-prediction/batch-predict-bq.js b/ai-platform/snippets/batch-prediction/batch-predict-bq.js index aa187ef819..175442cbdd 100644 --- a/ai-platform/snippets/batch-prediction/batch-predict-bq.js +++ b/ai-platform/snippets/batch-prediction/batch-predict-bq.js @@ -80,7 +80,7 @@ async function main(projectId, outputUri) { // Create batch prediction job request const [response] = await jobServiceClient.createBatchPredictionJob(request); - console.log('Response name: ', JSON.stringify(response.name, null, 2)); + console.log('Response name: ', response.name); // Example response: // Response name: projects//locations/us-central1/batchPredictionJobs/ } diff --git a/ai-platform/snippets/batch-prediction/batch-predict-gcs.js b/ai-platform/snippets/batch-prediction/batch-predict-gcs.js index 6b2673eff3..9ed5e1f707 100644 --- a/ai-platform/snippets/batch-prediction/batch-predict-gcs.js +++ b/ai-platform/snippets/batch-prediction/batch-predict-gcs.js @@ -83,7 +83,7 @@ async function main(projectId, outputUri) { // Create batch prediction job request const [response] = await jobServiceClient.createBatchPredictionJob(request); - console.log('Response name: ', JSON.stringify(response.name, null, 2)); + console.log('Response name: ', response.name); // Example response: // Response name: projects//locations/us-central1/batchPredictionJobs/ }