Skip to content

Commit a89b5dd

Browse files
author
Daniel Lorch
committed
chore: add AWS_DEFAULT_REGION setting
1 parent 07bf21e commit a89b5dd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

notebooks/misc/e2e-example-with-multimodal-page-classification-few-shot-prompting.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
"import boto3\n",
3838
"import os\n",
3939
"\n",
40-
"os.environ['AWS_PROFILE'] = 'default' # change to desired AWS profile\n",
40+
"# adjust profile or region if required\n",
41+
"#os.environ['AWS_PROFILE'] = 'default'\n",
42+
"#os.environ['AWS_DEFAULT_REGION'] = 'us-west-2'\n",
4143
"\n",
4244
"sts_client = boto3.client('sts')\n",
4345
"sts_client.get_caller_identity()['Arn']"

notebooks/misc/test_few_shot_extraction.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@
2020
"cell_type": "code",
2121
"execution_count": null,
2222
"metadata": {},
23-
"outputs": []
23+
"outputs": [],
2424
"source": [
2525
"%reload_ext autoreload\n",
2626
"%autoreload 2\n",
2727
"\n",
2828
"import boto3\n",
2929
"import os\n",
3030
"\n",
31-
"os.environ['AWS_PROFILE'] = 'default' # change to desired AWS profile\n",
31+
"# adjust profile or region if required\n",
32+
"#os.environ['AWS_PROFILE'] = 'default'\n",
33+
"#os.environ['AWS_DEFAULT_REGION'] = 'us-west-2'\n",
3234
"\n",
3335
"sts_client = boto3.client('sts')\n",
3436
"sts_client.get_caller_identity()['Arn']"

0 commit comments

Comments
 (0)