loud-dentist-4938
12/19/2024, 8:48 PMcareful-australia-19356
12/19/2024, 10:04 PMloud-dentist-4938
12/19/2024, 10:33 PMinvoke_endpoint = SageMakerInvokeEndpointTask(
name="sagemaker_invoke_endpoint",
config={
"EndpointName": "YOUR_ENDPOINT_NAME_HERE",
"InputLocation": "<s3://sagemaker-agent-xgboost/inference_input>",
},
region=REGION,
)
and boto3
untime_client = boto3.client("sagemaker-runtime", region_name=region)
response = runtime_client.invoke_endpoint(
EndpointName=endpoint_name,
ContentType="application/json",
Body=json.dumps(payload),
)
return response["Body"].read().decode("utf-8")
loud-dentist-4938
12/19/2024, 10:43 PMthankful-minister-83577
freezing-airport-6809
freezing-airport-6809
loud-dentist-4938
12/20/2024, 2:58 PMfreezing-tailor-85994
12/20/2024, 3:01 PMfreezing-airport-6809