- torch is required
Positive sentiment
curl --location 'https://api.cortex.cerebrium.ai/v4/<your-project-id>/<your-app-name>/predict' \
--header 'Authorization: Bearer <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{"text": "this product is great"}'
Negative sentiment
curl --location 'https://api.cortex.cerebrium.ai/v4/<your-project-id>/<your-app-name>/predict' \
--header 'Authorization: Bearer <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{"text": "this thing is the worst"}'