Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 248c0d0

Browse filesBrowse files
committed
updated the newest processor version in handle_response_sample_test.py file
1 parent 5b07deb commit 248c0d0
Copy full SHA for 248c0d0

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎documentai/snippets/handle_response_sample.py

Copy file name to clipboardExpand all lines: documentai/snippets/handle_response_sample.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,10 @@ def process_document(
388388
project_id: str,
389389
location: str,
390390
processor_id: str,
391-
# processor_version: str,
391+
processor_version: str,
392392
file_path: str,
393393
mime_type: str,
394394
process_options: Optional[documentai.ProcessOptions] = None,
395-
processor_version: str = "pretrained-foundation-model-v2.0-2024-02-22",
396395
) -> documentai.Document:
397396
# You must set the `api_endpoint` if you use a location other than "us".
398397
client = documentai.DocumentProcessorServiceClient(

‎documentai/snippets/handle_response_sample_test.py

Copy file name to clipboardExpand all lines: documentai/snippets/handle_response_sample_test.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def test_process_document_quality(capsys):
117117
location = "us"
118118
project_id = os.environ["GOOGLE_CLOUD_PROJECT"]
119119
processor_id = "52a38e080c1a7296"
120-
processor_version = "pretrained-ocr-v1.0-2020-09-23"
120+
# processor_version = "pretrained-ocr-v1.0-2020-09-23"
121+
processor_version = "pretrained-foundation-model-v2.0-2024-02-22"
121122
poor_quality_file_path = "resources/document_quality_poor.pdf"
122123
mime_type = "application/pdf"
123124

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.