This is a python code, so make sure you have python installed on your system.
Docker must be installed on your system.
- Clone the repository:
git clone https://github.com/nutriomatic/predict-api.git
cd predict-api
- Build the Docker image:
docker build -t predict-api .
- Run the Docker container:
docker run -d -p 8080:8080 --name predict-api predict-api
This will start the application and map port 8080 of the Docker container to port 8080 on your local machine.
-
Access the application: Open your web browser and navigate to http://localhost:8080
-
If it shows 'Hello, world!' then you have successfully run the predict api.
-
The next step is to configure the backend service, you can find it in the backend repository.
- Stop the Docker container:
docker stop predict-api
- Remove the Docker container:
docker rm predict-api
.
├── core
│ ├── main.py
│ └── utils.py
├── models
│ ├── model_grade_predict_dum.h5
│ ├── model_new.h5
│ └── scaler.joblib
├── app.py
├── Dockerfile
├── requirements.txt
└── README.md
Contributions are welcome! Please fork the repository and submit a pull request with your improvements or new features.