File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ def generate_text() -> str:
22
22
23
23
from vertexai .generative_models import GenerativeModel , Part
24
24
25
- # TODO(developer): Update project_id and location
25
+ # TODO(developer): Update & uncomment line below
26
+ # PROJECT_ID = "your-project-id"
26
27
vertexai .init (project = PROJECT_ID , location = "us-central1" )
27
28
28
29
model = GenerativeModel ("gemini-1.5-flash-001" )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def generate_from_text_input() -> str:
21
21
import vertexai
22
22
from vertexai .generative_models import GenerativeModel
23
23
24
- # TODO(developer): Update project_id
24
+ # TODO(developer): Update & uncomment line below
25
25
# PROJECT_ID = "your-project-id"
26
26
vertexai .init (project = PROJECT_ID , location = "us-central1" )
27
27
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ def analyze_video_with_audio() -> str:
22
22
import vertexai
23
23
from vertexai .generative_models import GenerativeModel , Part
24
24
25
- # TODO(developer): Update project_id and location
25
+ # TODO(developer): Update & uncomment line below
26
+ # PROJECT_ID = "your-project-id"
26
27
vertexai .init (project = PROJECT_ID , location = "us-central1" )
27
28
28
29
model = GenerativeModel ("gemini-1.5-flash-001" )
You can’t perform that action at this time.
0 commit comments