Spaces:
Sleeping
Sleeping
File size: 670 Bytes
43a2563 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Render.com blueprint for the emotion API.
# Connect the repo in the Render dashboard and it will pick up this file
# (Infrastructure as Code). Deploys the Docker image with a health check.
services:
- type: web
name: distilbert-emotion-api
runtime: docker
plan: starter # bump for the real model (OFFLINE=0 needs more RAM)
dockerfilePath: ./Dockerfile
healthCheckPath: /healthz
autoDeploy: true
envVars:
- key: OFFLINE
value: "1"
- key: PORT
value: "8000"
- key: LOG_LEVEL
value: INFO
- key: MAX_BATCH_SIZE
value: "64"
- key: BATCH_MAX_DELAY_MS
value: "5"
|