Skip to content

Commit e587ab9

Browse files
rsamborskiiennae
authored andcommitted
Update gemma2PredictGpu.js
Move the region tag to show to documentation users how to call the function.
1 parent 35bc528 commit e587ab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ai-platform/snippets/gemma2PredictGpu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
'use strict';
1616

17+
// [START generativeaionvertexai_gemma2_predict_gpu]
1718
async function gemma2PredictGpu(predictionServiceClient) {
18-
// [START generativeaionvertexai_gemma2_predict_gpu]
1919
// Imports the Google Cloud Prediction Service Client library
2020
const {
2121
// TODO(developer): Uncomment PredictionServiceClient before running the sample.
@@ -62,7 +62,6 @@ async function gemma2PredictGpu(predictionServiceClient) {
6262
const text = predictions[0].stringValue;
6363

6464
console.log('Predictions:', text);
65-
// [END generativeaionvertexai_gemma2_predict_gpu]
6665
return text;
6766
}
6867

@@ -73,3 +72,4 @@ module.exports = gemma2PredictGpu;
7372
// console.error(err.message);
7473
// process.exitCode = 1;
7574
// });
75+
// [END generativeaionvertexai_gemma2_predict_gpu]

0 commit comments

Comments
 (0)