Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion generative_ai/gemini_guide_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def generate_text() -> str:

from vertexai.generative_models import GenerativeModel, Part

# TODO(developer): Update project_id and location
# TODO(developer): Update & uncomment below line
# PROJECT_ID = "your-project-id"
vertexai.init(project=PROJECT_ID, location="us-central1")

model = GenerativeModel("gemini-1.5-flash-001")
Expand Down
2 changes: 1 addition & 1 deletion generative_ai/gemini_text_input_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def generate_from_text_input() -> str:
import vertexai
from vertexai.generative_models import GenerativeModel

# TODO(developer): Update project_id
# TODO(developer): Update and un-comment below lines
# PROJECT_ID = "your-project-id"
vertexai.init(project=PROJECT_ID, location="us-central1")

Expand Down
3 changes: 2 additions & 1 deletion generative_ai/gemini_video_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def analyze_video_with_audio() -> str:
import vertexai
from vertexai.generative_models import GenerativeModel, Part

# TODO(developer): Update project_id and location
# TODO(developer): Update & uncomment below line
# PROJECT_ID = "your-project-id"
vertexai.init(project=PROJECT_ID, location="us-central1")

model = GenerativeModel("gemini-1.5-flash-001")
Expand Down
Loading