Spaces:
Sleeping
Sleeping
danial0203
commited on
Commit
•
1ef063e
1
Parent(s):
b4c94c6
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,8 @@ s3 = s3fs.S3FileSystem(
|
|
19 |
secret=os.getenv('AWS_SECRET_KEY'),
|
20 |
client_kwargs={'region_name': os.getenv('AWS_REGION')}
|
21 |
)
|
22 |
-
textract_client = boto3.client('textract', region_name=region_name)
|
|
|
23 |
|
24 |
# textract_client = boto3.client(
|
25 |
# 'textract',
|
|
|
19 |
secret=os.getenv('AWS_SECRET_KEY'),
|
20 |
client_kwargs={'region_name': os.getenv('AWS_REGION')}
|
21 |
)
|
22 |
+
# textract_client = boto3.client('textract', region_name=region_name)
|
23 |
+
textract_client = boto3.client('textract', aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key, region_name=region_name)
|
24 |
|
25 |
# textract_client = boto3.client(
|
26 |
# 'textract',
|