Step to use code
- Clone and Ctrl+Shift+P to setup environment Python, choose venv and then choose requirements.txt to install library
- Drop your model to folder models and change model_path to your model in main.py
- Change class_label to the array of all the class your model predict
- Run file main.py to start server
- Use postman to test api, default api to the predict api will be: http://localhost:5000/predict
- Choose Rest API POST, pass your photo in the body with form-data type, key will name 'photo', variable will be the image you want to predict
- Click Send and it will return the best class it predict
- Use ngrok for other computer to access your server
- Done