Skip to content

Commit c27330d

Browse files
authored
feat: change aspect ratio for veo r2v sample (#13741)
1 parent 21ea70b commit c27330d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

genai/video_generation/videogen_with_reference.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ def generate_videos_from_reference(output_gcs_uri: str) -> str:
2626

2727
operation = client.models.generate_videos(
2828
model="veo-3.1-generate-preview",
29-
prompt="slowly rotate this coffee mug in a 360 degree circle",
29+
prompt="A person walks in carrying a vase full of flowers and places the vase on a kitchen table.",
3030
config=GenerateVideosConfig(
3131
reference_images=[
3232
VideoGenerationReferenceImage(
3333
image=Image(
34-
gcs_uri="gs://cloud-samples-data/generative-ai/image/mug.png",
34+
gcs_uri="gs://cloud-samples-data/generative-ai/image/vase.png",
3535
mime_type="image/png",
3636
),
3737
reference_type="asset",
3838
),
3939
],
40-
aspect_ratio="16:9",
40+
aspect_ratio="9:16",
4141
output_gcs_uri=output_gcs_uri,
4242
),
4343
)

0 commit comments

Comments
 (0)