diff --git a/CHANGELOG.md b/CHANGELOG.md index e8d9558..099f3e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ Unreleased ### Updated - Updated model conversion method (for Faster Whisper) to use Hugging Face downloader -- Updated default model paths to `~/.cache/whisper`. +- Updated default model paths to `~/.cache/whisper` or `/root/.cache/whisper`. - For customization, modify the `ASR_MODEL_PATH` environment variable. - Ensure Docker volume is set for the corresponding directory to use caching. ```bash diff --git a/docker-compose.gpu.yml b/docker-compose.gpu.yml index 5003b08..82eb1c5 100644 --- a/docker-compose.gpu.yml +++ b/docker-compose.gpu.yml @@ -20,7 +20,7 @@ services: - ./app:/app/app - cache-pip:/root/.cache/pip - cache-poetry:/root/.cache/poetry - - cache-whisper:~/.cache/whisper + - cache-whisper:/root/.cache/whisper volumes: cache-pip: diff --git a/docker-compose.yml b/docker-compose.yml index c363e68..fdf1add 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: - ./app:/app/app - cache-pip:/root/.cache/pip - cache-poetry:/root/.cache/poetry - - cache-whisper:~/.cache/whisper + - cache-whisper:/root/.cache/whisper volumes: cache-pip: diff --git a/docs/run.md b/docs/run.md index 1e63fed..a0111b2 100644 --- a/docs/run.md +++ b/docs/run.md @@ -35,7 +35,7 @@ Docker Hub: ## Cache The ASR model is downloaded each time you start the container, using the large model this can take some time. -If you want to decrease the time it takes to start your container by skipping the download, you can store the cache directory (`~/.cache/whisper`) to a persistent storage. +If you want to decrease the time it takes to start your container by skipping the download, you can store the cache directory (`~/.cache/whisper` or `/root/.cache/whisper`) to a persistent storage. Next time you start your container the ASR Model will be taken from the cache instead of being downloaded again. **Important this will prevent you from receiving any updates to the models.** @@ -43,7 +43,7 @@ Next time you start your container the ASR Model will be taken from the cache in === ":octicons-file-code-16: `Default cache dir`" ```sh - docker run -d -p 9000:9000 -v ./yourlocaldir:~/.cache/whisper onerahmet/openai-whisper-asr-webservice:latest + docker run -d -p 9000:9000 -v ./yourlocaldir:/root/.cache/whisper onerahmet/openai-whisper-asr-webservice:latest ``` === ":octicons-file-code-16: `With ASR_MODEL_PATH`"