Skip to content

Commit cd88a29

Browse files
authored
fix: changes positional to named pararameters in Video samples [(#4017)](GoogleCloudPlatform/python-docs-samples#4017)
Changes calls to `VideoClient.annotate_video()` so that GCS URIs are provided as named parameters. Example: ``` operation = video_client.annotate_video(path, features=features) ``` Becomes: ``` operation = video_client.annotate_video(input_uri=path, features=features) ```
1 parent 8207cfd commit cd88a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/labels/labels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def analyze_labels(path):
4040
# [START video_label_tutorial_construct_request]
4141
video_client = videointelligence.VideoIntelligenceServiceClient()
4242
features = [videointelligence.enums.Feature.LABEL_DETECTION]
43-
operation = video_client.annotate_video(path, features=features)
43+
operation = video_client.annotate_video(input_uri=path, features=features)
4444
# [END video_label_tutorial_construct_request]
4545
print('\nProcessing video for label annotations:')
4646

0 commit comments

Comments
 (0)