You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: medcat-trainer/docs/installation.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,16 @@ The above commands runs the latest release of MedCATtrainer, if you'd prefer to
31
31
$ docker-compose -f docker-compose-dev.yml up
32
32
```
33
33
34
+
The webapp Python dependencies are managed with **uv** and **pyproject.toml** (see `medcat-trainer/webapp/pyproject.toml`). To install locally for development:
35
+
36
+
```shell
37
+
$ cd medcat-trainer/webapp
38
+
$ uv sync --no-install-project
39
+
$ uv run python api/manage.py runserver
40
+
```
41
+
42
+
To add or update dependencies, `uv add && uvlock`; commit `uv.lock` for reproducible Docker builds.
43
+
34
44
To change environment variables, such as the exposed host ports and language of spaCy model, use:
35
45
```shell
36
46
$ cp .env-example .env
@@ -111,11 +121,11 @@ Currently, there are two roles that can be assigned to users:
111
121
112
122
113
123
### (Optional) Postgres Database Support
114
-
MedCAT trainer defaults to a local SQLite database, which is suitable for single-user or small-scale setups.
124
+
MedCAT trainer defaults to a local SQLite database, which is suitable for single-user or small-scale setups.
115
125
116
126
For larger deployments, or to support multiple replicas of the app for example in Kubernetes, you may want to run a postgresql database.
117
127
118
-
You can optionally use a postgresql database instead by setting the following env variables.
128
+
You can optionally use a postgresql database instead by setting the following env variables.
field=models.BooleanField(default=False, help_text='Use a remote MedCAT service API for document processing instead of local models(note: interim model training is not supported for remote model service projects)'),
25
+
),
26
+
migrations.AlterField(
27
+
model_name='projectgroup',
28
+
name='use_model_service',
29
+
field=models.BooleanField(default=False, help_text='Use a remote MedCAT service API for document processing instead of local models(note: interim model training is not supported for remote model service projects)'),
0 commit comments