Skip to content

Commit

Permalink
upgraded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alvertogit committed Nov 3, 2024
1 parent 03c8a5a commit 4533c67
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
```
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements.txt
jupyterlab==4.2.5
jupyterlab==4.3.0
matplotlib==3.9.2

0 comments on commit 4533c67

Please sign in to comment.