This project is a demo implementation of a Text Classification AI using SageMaker in CDK.
We use an ApiGateway which handles requests and sends them to a SageMaker Endpoint, that forwards them to the model. The model itself is stored in an S3-Bucket.
After this code has been implemented and the model files are in ./modeldata
, you can deploy the model, simply by using cdk deploy
.
You can test this model by using this curl command.
curl --request POST \
--url {apigw-url} \
--header 'Content-Type: application/json' \
--data '{"inputs": "Inference with hugging face models and Sagemaker is easy!" }'