github-actions[bot] commited on
Commit
8808e7f
·
1 Parent(s): 37da40f

Sync with https://github.com/mozilla-ai/speaches-demo

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. README.md +5 -1
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- # Dockerfile for speaches.ai ASR Server
2
  # Base image directly using the pre-built speaches image
3
  FROM ghcr.io/speaches-ai/speaches:latest-cpu
 
4
  USER ubuntu
5
  ENV HOME=/home/ubuntu \
6
  PATH=/home/ubuntu/.local/bin:$PATH
 
 
1
  # Base image directly using the pre-built speaches image
2
  FROM ghcr.io/speaches-ai/speaches:latest-cpu
3
+
4
  USER ubuntu
5
  ENV HOME=/home/ubuntu \
6
  PATH=/home/ubuntu/.local/bin:$PATH
README.md CHANGED
@@ -19,4 +19,8 @@ preload_from_hub:
19
  - Systran/faster-whisper-large-v3
20
  ---
21
 
22
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
19
  - Systran/faster-whisper-large-v3
20
  ---
21
 
22
+
23
+ ### Note about hosting this demo in HF spaces
24
+
25
+ By default, the demo throws a 301 HTTP error, because HTTP requests are redirected to HTTPS by HF.
26
+ This can be solved by adding in the HF space settings the environment variable `LOOPBACK_HOST_URL=https://<user-name>-<space-name>.hf.space` and speaches will use this var in its config to set the base URL for requests.