mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 01:11:00 +00:00
Fix headings, move section
This commit is contained in:
parent
01b892b96a
commit
e559f899b8
1 changed files with 17 additions and 16 deletions
33
README.md
33
README.md
|
@ -135,6 +135,7 @@ Windows: `run.bat [args]`
|
|||
|
||||
Then open a web browser to http://localhost:5000
|
||||
|
||||
|
||||
### Build with Docker
|
||||
|
||||
```bash
|
||||
|
@ -159,22 +160,6 @@ docker-compose up -d --build
|
|||
|
||||
> The models are stored inside the container under `/home/libretranslate/.local/share` and `/home/libretranslate/.local/cache`. Feel free to use volumes if you do not want to redownload the models when the container is destroyed. To update the models, use the `--update-models` argument.
|
||||
|
||||
### Update
|
||||
|
||||
#### Software
|
||||
|
||||
If you installed with pip:
|
||||
|
||||
`pip install -U libretranslate`
|
||||
|
||||
If you're using docker:
|
||||
|
||||
`docker pull libretranslate/libretranslate`
|
||||
|
||||
#### Language Models
|
||||
|
||||
Start the program with the `--update-models` argument. For example: `libretranslate --update-models` or `./run.sh --update-models`.
|
||||
|
||||
### CUDA
|
||||
|
||||
You can use hardware acceleration to speed up translations on a GPU machine with CUDA 11.2 and [nvidia-docker](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) installed.
|
||||
|
@ -215,6 +200,22 @@ docker-compose -f docker-compose.cuda.yml up -d --build
|
|||
|
||||
Note that each argument has an equivalent environment variable that can be used instead. The env. variables overwrite the default values but have lower priority than the command arguments and are particularly useful if used with Docker. The environment variable names are the upper-snake-case of the equivalent command argument's name with a `LT` prefix.
|
||||
|
||||
## Update
|
||||
|
||||
### Software
|
||||
|
||||
If you installed with pip:
|
||||
|
||||
`pip install -U libretranslate`
|
||||
|
||||
If you're using docker:
|
||||
|
||||
`docker pull libretranslate/libretranslate`
|
||||
|
||||
### Language Models
|
||||
|
||||
Start the program with the `--update-models` argument. For example: `libretranslate --update-models` or `./run.sh --update-models`.
|
||||
|
||||
## Run with WSGI and Gunicorn
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue