fix port for WS link; use correct HF build arg
This commit is contained in:
parent
f668570292
commit
5b8ad94dde
2 changed files with 3 additions and 3 deletions
|
|
@ -281,7 +281,7 @@ To deploy WhisperLiveKit in production:
|
||||||
- Ensure WebSocket connection points to your server's address
|
- Ensure WebSocket connection points to your server's address
|
||||||
|
|
||||||
3. **Nginx Configuration** (recommended for production):
|
3. **Nginx Configuration** (recommended for production):
|
||||||
```nginx
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name your-domain.com;
|
server_name your-domain.com;
|
||||||
|
|
@ -324,7 +324,7 @@ docker start -i whisperlivekit-base
|
||||||
- `--build-arg` Options:
|
- `--build-arg` Options:
|
||||||
- `EXTRAS="whisper-timestamped"` - Add extras to the image's installation (no spaces). Remember to set necessary container options!
|
- `EXTRAS="whisper-timestamped"` - Add extras to the image's installation (no spaces). Remember to set necessary container options!
|
||||||
- `HF_PRECACHE_DIR="./.cache/"` - Pre-load a model cache for faster first-time start
|
- `HF_PRECACHE_DIR="./.cache/"` - Pre-load a model cache for faster first-time start
|
||||||
- `HF_TOKEN="./token"` - Add your Hugging Face Hub access token to download gated models
|
- `HF_TKN_FILE="./token"` - Add your Hugging Face Hub access token to download gated models
|
||||||
|
|
||||||
## 🔮 Use Cases
|
## 🔮 Use Cases
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@
|
||||||
const timerElement = document.querySelector(".timer");
|
const timerElement = document.querySelector(".timer");
|
||||||
|
|
||||||
const host = window.location.hostname || "localhost";
|
const host = window.location.hostname || "localhost";
|
||||||
const port = window.location.port || "8000";
|
const port = window.location.port;
|
||||||
const protocol = window.location.protocol === "https:" ? "wss" : "ws";
|
const protocol = window.location.protocol === "https:" ? "wss" : "ws";
|
||||||
const defaultWebSocketUrl = `${protocol}://${host}:${port}/asr`;
|
const defaultWebSocketUrl = `${protocol}://${host}:${port}/asr`;
|
||||||
websocketInput.value = defaultWebSocketUrl;
|
websocketInput.value = defaultWebSocketUrl;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue