Spaces:
Running
Running
| # Start the Celery worker in the background | |
| echo "Starting Celery worker..." | |
| celery -A app.worker.celery_app worker --loglevel=info -P solo & | |
| # Start the FastAPI server in the foreground | |
| echo "Starting FastAPI server..." | |
| uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860} --forwarded-allow-ips='*' --proxy-headers | |