Simple app consisting of a form where you can upload an image, and see the inference result of the model in the browser. Run:
$ python3 webapp.py --port 5000
then visit http://localhost:5000/ in your browser
Run locally and dev:
python3 -m venv venv
source venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ cd webapp
(venv) $ python3 webapp.py --port 5000
The example dockerfile shows how to expose the rest API:
# Build
docker build -t yolov5-flask .
# Run
docker run -p 5000:5000 yolov5-flask:latest