diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9bbeac2..a447e6e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.7.1 + rev: v0.7.2 hooks: # Run the linter. - id: ruff diff --git a/Dockerfile b/Dockerfile index ab94709..23ca7ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ RUN mkdir -p /app WORKDIR /app COPY requirements.txt /app RUN python3 -m venv . -RUN python3 -m pip install pip==24.3 -RUN python3 -m pip install setuptools==75.2.0 +RUN python3 -m pip install pip==24.3.1 +RUN python3 -m pip install setuptools==75.3.0 RUN python3 -m pip install --no-cache-dir -r requirements.txt COPY ./app /app EXPOSE 5000 diff --git a/README.md b/README.md index f337950..4b029a7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The goal is to deploy on [Flask] a [Deep Learning] model as a microservice. The The code has been tested using: - [Python] (3.12): an interpreted high-level programming language for general-purpose programming. -- [Jupyter Lab] (4.2): a web-based interactive development environment for [Jupyter Notebooks], code and data. +- [Jupyter Lab] (4.3): a web-based interactive development environment for [Jupyter Notebooks], code and data. - [Flask] (3.0): a microframework for [Python] based on Werkzeug, Jinja 2 and good intentions. - [Gunicorn] (23.0): a [Python] [WSGI] HTTP Server for UNIX. - [NGINX] (1.27): a free, open-source, high-performance HTTP server, reverse proxy, and IMAP/POP3 proxy server. @@ -43,8 +43,8 @@ Command to configure virtual environment with [venv]: ```bash ~/deeplearning_flask$ python3 -m venv .venv ~/deeplearning_flask$ source .venv/bin/activate -(.venv)~/deeplearning_flask$ python3 -m pip install pip==24.3 -(.venv)~/deeplearning_flask$ python3 -m pip install setuptools==75.2.0 +(.venv)~/deeplearning_flask$ python3 -m pip install pip==24.3.1 +(.venv)~/deeplearning_flask$ python3 -m pip install setuptools==75.3.0 (.venv)~/deeplearning_flask$ python3 -m pip install -r requirements_dev.txt (.venv)~/deeplearning_flask$ pre-commit install ``` @@ -58,33 +58,33 @@ deeplearning_flask ├── .env.example ├── .env.test ├── .github -│   └── workflows -│   └── ci_tests.yml +│ └── workflows +│ └── ci_tests.yml ├── .gitignore ├── .pre-commit-config.yaml ├── app -│   ├── app -│   │   ├── __init__.py -│   │   ├── api.py -│   │   ├── model.py -│   │   ├── static -│   │   │   └── 4.jpg -│   │   └── templates -│   │   └── dlflask.html -│   ├── config.py -│   ├── Makefile -│   ├── mnist_model.keras -│   ├── server.py -│   └── tests -│   ├── __init__.py -│   ├── conftest.py -│   └── test_app.py +│ ├── app +│ │ ├── __init__.py +│ │ ├── api.py +│ │ ├── model.py +│ │ ├── static +│ │ │ └── 4.jpg +│ │ └── templates +│ │ └── dlflask.html +│ ├── config.py +│ ├── Makefile +│ ├── mnist_model.keras +│ ├── server.py +│ └── tests +│ ├── __init__.py +│ ├── conftest.py +│ └── test_app.py ├── Deep Learning MNIST prediction model with Keras.ipynb ├── docker-compose.yml ├── Dockerfile ├── nginx -│   └── conf.d -│   └── local.conf +│ └── conf.d +│ └── local.conf ├── pyproject.toml ├── README.md ├── requirements.txt diff --git a/requirements.txt b/requirements.txt index 7efde85..e2d7971 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,6 @@ pre-commit==4.0.1 pur==7.3.2 pytest==8.3.3 requests==2.32.3 -ruff==0.7.1 +ruff==0.7.2 scikit-image==0.24.0 tensorflow==2.18.0 diff --git a/requirements_dev.txt b/requirements_dev.txt index 68df290..8f446f9 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,3 +1,3 @@ -r requirements.txt -jupyterlab==4.2.5 +jupyterlab==4.3.0 matplotlib==3.9.2