-
Build the Docker image:
docker build -t uni-ml-exam-main .
-
Run the Docker container:
docker run -p 80:80 uni-ml-exam-main
-
Access the API: - The API will be accessible at
http://localhost:80
- Use Postman to send a POST request tohttp://localhost:80/predict
with the following JSON body:{ "data": [ [5.1, 3.5, 1.4, 0.2], [6.7, 3.1, 4.7, 1.5], [5.9, 3.0, 5.1, 1.8] ] }
-
Install pytest:
pip install pytest
-
Run the tests:
pytest tests/