Spaces:
Running
Running
Commit ·
b67ab05
1
Parent(s): 224df70
push again
Browse files- Dockerfile +2 -2
- README.md +3 -3
- download_models.py +2 -2
- requirements.txt +1 -0
Dockerfile
CHANGED
|
@@ -43,8 +43,8 @@ RUN chmod +x /app/start.sh
|
|
| 43 |
USER user
|
| 44 |
|
| 45 |
ENV HF_MODEL_REPO="piyazon/whisper_uyghur_pt" \
|
| 46 |
-
HF_MODEL_FILENAMES="
|
| 47 |
-
WHISPER_MODEL_FILENAME="
|
| 48 |
WHISPER_LANGUAGE="ug" \
|
| 49 |
WHISPER_BACKEND="whisper" \
|
| 50 |
PORT="7860"
|
|
|
|
| 43 |
USER user
|
| 44 |
|
| 45 |
ENV HF_MODEL_REPO="piyazon/whisper_uyghur_pt" \
|
| 46 |
+
HF_MODEL_FILENAMES="uyghur_whisper_tiny.pt" \
|
| 47 |
+
WHISPER_MODEL_FILENAME="uyghur_whisper_tiny.pt" \
|
| 48 |
WHISPER_LANGUAGE="ug" \
|
| 49 |
WHISPER_BACKEND="whisper" \
|
| 50 |
PORT="7860"
|
README.md
CHANGED
|
@@ -22,13 +22,13 @@ Set `HF_TOKEN` as a Space secret with read access to the private model repo.
|
|
| 22 |
|
| 23 |
- WhisperLiveKit repo: `https://github.com/Alimjoo/WhisperLiveKit-ug.git`
|
| 24 |
- Hugging Face model repo: `piyazon/whisper_uyghur_pt`
|
| 25 |
-
- Downloaded model files: `
|
| 26 |
-
- Started model: `
|
| 27 |
- Port: `7860`
|
| 28 |
|
| 29 |
## Runtime configuration
|
| 30 |
|
| 31 |
-
- `WHISPER_MODEL_FILENAME=
|
| 32 |
- `WHISPER_MODEL_PATH=/path/to/model.pt` skips Hugging Face download.
|
| 33 |
- `WHISPER_LANGUAGE=auto` can be used if the fork rejects `ug`.
|
| 34 |
- `WHISPERLIVEKIT_ARGS` appends extra CLI arguments, for example
|
|
|
|
| 22 |
|
| 23 |
- WhisperLiveKit repo: `https://github.com/Alimjoo/WhisperLiveKit-ug.git`
|
| 24 |
- Hugging Face model repo: `piyazon/whisper_uyghur_pt`
|
| 25 |
+
- Downloaded model files: `uyghur_whisper_tiny.pt`
|
| 26 |
+
- Started model: `uyghur_whisper_tiny.pt`
|
| 27 |
- Port: `7860`
|
| 28 |
|
| 29 |
## Runtime configuration
|
| 30 |
|
| 31 |
+
- `WHISPER_MODEL_FILENAME=uyghur_whisper_base.pt` starts the base model instead.
|
| 32 |
- `WHISPER_MODEL_PATH=/path/to/model.pt` skips Hugging Face download.
|
| 33 |
- `WHISPER_LANGUAGE=auto` can be used if the fork rejects `ug`.
|
| 34 |
- `WHISPERLIVEKIT_ARGS` appends extra CLI arguments, for example
|
download_models.py
CHANGED
|
@@ -6,8 +6,8 @@ from huggingface_hub import hf_hub_download
|
|
| 6 |
|
| 7 |
|
| 8 |
DEFAULT_MODEL_REPO = "piyazon/whisper_uyghur_pt"
|
| 9 |
-
DEFAULT_MODEL_FILENAMES = "
|
| 10 |
-
DEFAULT_SELECTED_MODEL = "
|
| 11 |
|
| 12 |
|
| 13 |
def _split_filenames(value: str) -> list[str]:
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
DEFAULT_MODEL_REPO = "piyazon/whisper_uyghur_pt"
|
| 9 |
+
DEFAULT_MODEL_FILENAMES = "uyghur_whisper_tiny.pt"
|
| 10 |
+
DEFAULT_SELECTED_MODEL = "uyghur_whisper_tiny.pt"
|
| 11 |
|
| 12 |
|
| 13 |
def _split_filenames(value: str) -> list[str]:
|
requirements.txt
CHANGED
|
@@ -3,3 +3,4 @@ uvicorn[standard]
|
|
| 3 |
huggingface_hub>=0.23
|
| 4 |
hf_xet>=1.0
|
| 5 |
umsc
|
|
|
|
|
|
| 3 |
huggingface_hub>=0.23
|
| 4 |
hf_xet>=1.0
|
| 5 |
umsc
|
| 6 |
+
python-multipart
|