A proxy in the middle will receive HTTP webhooks from a running Replicate model and relay them via Websockets to the client application.
Install Serverless Framework and create an AWS account. Setup a new profile in ~/.aws/credentials for a service role with administrative access. Change the profile in services/ws/serverless.yml and services/webhook/serverless.yml to match the profile name in ~/.aws/credentials.
- Install dependencies:
npm install- Deploy the
wsCloudFormation stack:
cd services/ws
sls deploy --stage prod- Deploy the
webhookCloudFormation stack:
cd services/webhook
sls deploy --stage prod