python3 restapi.py --port 1234 --model drone
python3 -m venv venv
source venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ python3 restapi.py --port 1234
Then use curl to perform a request:
$ curl -X POST -F image=@tests/zidane.jpg 'http://localhost:1234/v1/object-detection/yolov5'