We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee6538 commit 6eaad9aCopy full SHA for 6eaad9a
samples/snippets/detect/detect.py
@@ -704,7 +704,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
704
bucket_name = match.group(1)
705
prefix = match.group(2)
706
707
- bucket = storage_client.get_bucket(bucket_name=bucket_name)
+ bucket = storage_client.get_bucket(bucket_name)
708
709
# List objects with the given prefix.
710
blob_list = list(bucket.list_blobs(prefix=prefix))
@@ -715,7 +715,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
715
# Process the first output file from GCS.
716
# Since we specified batch_size=2, the first response contains
717
# the first two pages of the input file.
718
- output = blob_list[0]
+ output = blob_list[1]
719
720
json_string = output.download_as_string()
721
response = json_format.Parse(
0 commit comments