File tree 1 file changed +2
-2
lines changed
vision/cloud-client/detect
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
704
704
bucket_name = match .group (1 )
705
705
prefix = match .group (2 )
706
706
707
- bucket = storage_client .get_bucket (bucket_name )
707
+ bucket = storage_client .get_bucket (bucket_name = bucket_name )
708
708
709
709
# List objects with the given prefix.
710
710
blob_list = list (bucket .list_blobs (prefix = prefix ))
@@ -715,7 +715,7 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
715
715
# Process the first output file from GCS.
716
716
# Since we specified batch_size=2, the first response contains
717
717
# the first two pages of the input file.
718
- output = blob_list [1 ]
718
+ output = blob_list [0 ]
719
719
720
720
json_string = output .download_as_string ()
721
721
response = json_format .Parse (
You can’t perform that action at this time.
0 commit comments