deploy a yolov5 model using pytorch + flask start $ FLASK_ENV=development FLASK_APP=app.py flask run then, visit http://localhost:5000/ in your browser environments pytorch >= 1.6 flask pillow reference https://github.com/ultralytics/yolov5 Load YOLOv5 from PyTorch Hub https://github.com/avinassh/pytorch-flask-api-heroku