Skip to content

Commit 4e01d0b

Browse files
authored
fix: Update boto3 AWS client to accept service credentials (#88)
* update boto3 client to use the credentials Signed-off-by: “wai25” <19560023+wai25@users.noreply.github.com> * format Signed-off-by: “wai25” <19560023+wai25@users.noreply.github.com> --------- Signed-off-by: “wai25” <19560023+wai25@users.noreply.github.com>
1 parent 75311da commit 4e01d0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docling_eval/prediction_providers/aws_prediction_provider.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ def __init__(
7474

7575
region_name = os.getenv("AWS_REGION", "us-east-1")
7676

77-
self.textract_client = boto3.client("textract", region_name=region_name)
77+
self.textract_client = boto3.client(
78+
"textract",
79+
aws_access_key_id=aws_access_key_id,
80+
aws_secret_access_key=aws_secret_access_key,
81+
region_name=region_name,
82+
)
7883

7984
def extract_bbox_from_geometry(self, geometry):
8085
"""Helper function to extract bbox coordinates from AWS Textract geometry data."""

0 commit comments

Comments
 (0)