Image classifier served by Flask server and implementing Resnet50 model
If venv is not installed on linux machine then install it by running below commands -
- sudo apt-get install virtualenv
- python3 -m venv venv
- Activate venv by running ". venv/bin.activate"
Install flask inside venv session -
- pip install flask
- Before running app.py set "export FLASK_APP=app.py"
- Run flask server in localmode - "flask run --host=0.0.0.0"
Open browser and run url- http://127.0.0.1:5000/ to connect to this server