Threat-Detection / start.sh
Subh775's picture
Create start.sh
f4a0080 verified
#!/bin/bash
echo "Starting Object Detection Comparison Server..."
echo "Using Gunicorn with timeout 120s..."
# Run Gunicorn
# -w 2: Uses 2 workers (Suitable for 2 vCPU environment)
# --timeout 120: Gives models time to load/infer without timing out
# -b 0.0.0.0:7860: Binds to the Hugging Face port
exec gunicorn -w 2 -b 0.0.0.0:7860 --timeout 120 app:app