Update README.md

This commit is contained in:
Andrey Danilov
2024-05-20 00:01:08 +03:00
parent 131ce2b625
commit 9e27f642fb

View File

@@ -140,3 +140,32 @@ curl -X 'POST' \
-F 'modelpath={model.pth}' \
-F 'input={input audio path}'
```
### Docker Usage
Build and run via script:
```bash
./docker-run.sh
```
**Or** use manually:
1. Build:
```bash
docker build -t "rvc" .
```
2. Run:
```bash
docker run -it \
-p 8000:8000 \
-v "${PWD}/assets/weights:/weights:ro" \
-v "${PWD}/assets/indices:/indices:ro" \
-v "${PWD}/assets/audios:/audios:ro" \
"rvc"
```
Notice assumption that weights, indices and input audios are stored in `current-directory/assets`