From 404137c4c8257f656e8bd19ad307f37996d94fcd Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 21 Jun 2025 14:22:42 -0500 Subject: [PATCH] h-a/whisper: Set writable cache dir for HF models Whisper now needs a writable location for downloading models from Hugging Face Hub. The default location is `~/.cache/huggingface/hub`, but this is not writable in our container. The path can be controlled via one of several environment variables, but we're setting `HF_HOME` as it is sets the top level directory for several related paths. --- home-assistant/whisper.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home-assistant/whisper.yaml b/home-assistant/whisper.yaml index 62914db..863879f 100644 --- a/home-assistant/whisper.yaml +++ b/home-assistant/whisper.yaml @@ -42,6 +42,9 @@ spec: args: - --model=base - --language=en + env: + - name: HF_HOME + value: /data/hf.cache ports: - containerPort: 10300 name: wyoming