Spaces:
Sleeping
Sleeping
File size: 850 Bytes
4adc200 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # 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"
|