s3 txt file path changed

This commit is contained in:
Mayank Aamseek
2024-04-19 16:27:57 +05:30
parent f342eba1d5
commit fc8224754b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ s3_client = boto3.client('s3',
region_name="us-east-2"
)
bucket = 'doczy-dev-infra-textract'
objects = s3_client.list_objects_v2(Bucket=bucket, Prefix="training-data/contract-text-file/")
objects = s3_client.list_objects_v2(Bucket=bucket, Prefix="batches/batch_1/contract-text-file/")
file_list = []
for obj in objects['Contents']:
if not obj['Key'].endswith('/'):
+1 -1
View File
@@ -195,7 +195,7 @@ if st.session_state.user_info['mail'] in user_list:
region_name="us-east-2"
)
bucket = 'doczy-dev-infra-textract'
objects = s3_client.list_objects_v2(Bucket=bucket, Prefix="training-data/contract-text-file/")
objects = s3_client.list_objects_v2(Bucket=bucket, Prefix="batches/batch_1/contract-text-file/")
file_list = []
for obj in objects['Contents']:
if not obj['Key'].endswith('/'):