Spaces:
Sleeping
Sleeping
File size: 341 Bytes
703e27a ae08068 703e27a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/bash
# Start Redis in the background
redis-server --daemonize yes
# Wait for Redis to start
sleep 2
# Start Celery worker in the background
export C_FORCE_ROOT=true
celery -A src.tasks.ocr_tasks worker --loglevel=info &
# Start FastAPI
exec uvicorn src.main:app --host 0.0.0.0 --port 7860 --proxy-headers --forwarded-allow-ips "*"
|