From 0e6c12a94f97c63420e25f03f393b54b0a9f5ab0 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 31 Mar 2023 21:35:23 -0600 Subject: [PATCH] oops --- rust-whisper.d/hotwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-whisper.d/hotwords.py b/rust-whisper.d/hotwords.py index 71475bd..32a57b0 100644 --- a/rust-whisper.d/hotwords.py +++ b/rust-whisper.d/hotwords.py @@ -256,7 +256,7 @@ class Actor(threading.Thread): self.pid = int(environ["SIGUSR2"]) self.handle = self.handle_signal elif os.environ.get("URL", ""): - self.url = environ["URL"] + self.url = os.environ["URL"] self.handle = self.handle_url self.headers = [i.split("=")[:2] for i in os.environ.get("HEADERS", "").split("//") if i] self.body = os.environ.get("BODY", '{"hotword":"{{hotword}}","context":"{{context}}"}')