From a04fbeaf026d3d204dbb6c6cecf181068ddcc882 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 9 Dec 2020 09:44:14 -0800 Subject: [PATCH] fix: moves import statment inside region tags (#71) --- samples/snippets/process_document_sample_v1beta3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snippets/process_document_sample_v1beta3.py b/samples/snippets/process_document_sample_v1beta3.py index 29e66b19..5b045708 100644 --- a/samples/snippets/process_document_sample_v1beta3.py +++ b/samples/snippets/process_document_sample_v1beta3.py @@ -13,8 +13,6 @@ # limitations under the License. # -from google.cloud import documentai_v1beta3 as documentai - # [START documentai_process_document] # TODO(developer): Uncomment these variables before running the sample. @@ -27,6 +25,8 @@ def process_document_sample( project_id: str, location: str, processor_id: str, file_path: str ): + from google.cloud import documentai_v1beta3 as documentai + # Instantiates a client client = documentai.DocumentProcessorServiceClient()