Skip to content
Snippets Groups Projects
Commit c5684409 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Documenting model deployment

parent ab37943d
No related branches found
No related tags found
1 merge request!2Model factory
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -32,6 +32,8 @@ Install dependencies from requirements.txt ...@@ -32,6 +32,8 @@ Install dependencies from requirements.txt
This was done at start of project, and must be repeated after all dependency changes: This was done at start of project, and must be repeated after all dependency changes:
TODO: Decide on whether to use pip freeze or manage requirements.txt manually. Ref e.g. [this blogpost](https://medium.com/@tomagee/pip-freeze-requirements-txt-considered-harmful-f0bce66cf895)
```sh ```sh
(venv)$ pip install "fastapi[all]" (and others) (venv)$ pip install "fastapi[all]" (and others)
(venv)$ pip freeze > requirements.txt (venv)$ pip freeze > requirements.txt
...@@ -44,6 +46,13 @@ $ . venv/bin/activate ...@@ -44,6 +46,13 @@ $ . venv/bin/activate
(venv)$ deactivate (venv)$ deactivate
``` ```
### Install VIPS models
The VIPS models available will vary between deployments of VIPSCore-Python. They are installed using pip, and specified in `models.txt` - which can be considered a deployment specific addendum to `requirements.txt`. Copy `models_example.txt` to `models.txt` to get started.
```sh
pip install -r models.txt
```
## Development ## Development
### Run application locally ### Run application locally
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment