File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
generative_ai/batch_predict Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
import os
15
15
16
- from vertexai .preview . batch_prediction import BatchPredictionJob
16
+ from vertexai .batch_prediction import BatchPredictionJob
17
17
18
18
PROJECT_ID = os .getenv ("GOOGLE_CLOUD_PROJECT" )
19
19
@@ -36,7 +36,7 @@ def batch_predict_gemini_createjob(
36
36
import time
37
37
import vertexai
38
38
39
- from vertexai .preview . batch_prediction import BatchPredictionJob
39
+ from vertexai .batch_prediction import BatchPredictionJob
40
40
41
41
# TODO(developer): Update and un-comment below lines
42
42
# input_uri ="gs://[BUCKET]/[OUTPUT].jsonl" # Example
@@ -77,7 +77,6 @@ def batch_predict_gemini_createjob(
77
77
# https://storage.googleapis.com/cloud-samples-data/batch/prompt_for_batch_gemini_predict.jsonl
78
78
79
79
return batch_prediction_job
80
-
81
80
# [END generativeaionvertexai_batch_predict_gemini_createjob]
82
81
83
82
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ pandas==2.0.3; python_version == '3.8'
3
3
pandas == 2.1.4 ; python_version > '3.8'
4
4
pillow == 10.3.0 ; python_version < '3.8'
5
5
pillow == 10.3.0 ; python_version >= '3.8'
6
- google-cloud-aiplatform [all ]== 1.69 .0
6
+ google-cloud-aiplatform [all ]== 1.71 .0
7
7
sentencepiece == 0.2.0
8
8
google-auth == 2.29.0
9
9
anthropic [vertex ]== 0.28.0
You can’t perform that action at this time.
0 commit comments