File size: 367 Bytes
b10b0ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

echo "Starting RetinaFace Face Detection API..."

# Check if model files exist
if [ ! -f "mobilenet0.25_Final.pth" ]; then
    echo "Warning: mobilenet0.25_Final.pth not found!"
fi

if [ ! -f "Resnet50_Final.pth" ]; then
    echo "Warning: Resnet50_Final.pth not found!"
fi

# Start the FastAPI server
uvicorn app:app --host 0.0.0.0 --port 7860 --reload