Pill_Identification / render.yaml
Rushikesh-Sontakke
Complete project
4adc200
Raw
History Blame Contribute Delete
850 Bytes
# Render Blueprint β€” deploy this repo as a Web Service.
# In Render: New + β†’ Blueprint β†’ pick this repo, or create a Web Service
# manually and copy the build/start commands below.
services:
- type: web
name: pill-identification
runtime: python
# NOTE: this app loads YOLO + OpenOCR (PyTorch/ONNX) into memory.
# The free 512 MB plan will likely run out of memory β€” use at least
# the 'starter' plan (or larger) for a stable deployment.
plan: starter
buildCommand: pip install -r requirements.txt && python setup_models.py
startCommand: gunicorn main:app --workers 1 --threads 2 --timeout 300 --bind 0.0.0.0:$PORT
healthCheckPath: /healthz
envVars:
- key: PYTHON_VERSION
value: "3.10.13"
- key: TORCH_NUM_THREADS
value: "1"
- key: OMP_NUM_THREADS
value: "1"