python -m venv flask_app_env
This will create a folder in your current directory.
cd flask_app_env
source bin/activate
Go to the directory you want to put the repository (can be in the virtual environment folder flask_app_env
). Then use git to clone the repository
git clone https://github.com/thongn98/cat_dog_app.git
Go in this repository, then use pip to install the required library
cd cat_dog_app
pip install -r requirements.txt
Create `/models directory
mkdir models
Copy the model (.h5 file) into /cat_dog_app/models/
and change the 14th line in app.py to the right name of the model file.
mkdir uploads
Go back to /cat_dog_app
and run
flask run
Go to your browser and go to localhost:5000
to view your app