From 7be71f8fe7135064a9c75cc93e2164733e9867f1 Mon Sep 17 00:00:00 2001 From: Luke Southam Date: Sun, 25 Dec 2022 06:45:25 +0000 Subject: [PATCH] Fixes #2 - Hugging Face models can be downloaded without account! --- whispercpp.pyx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/whispercpp.pyx b/whispercpp.pyx index ab9a4e3..6fc377f 100644 --- a/whispercpp.pyx +++ b/whispercpp.pyx @@ -22,11 +22,11 @@ cdef char* LANGUAGE = b'fr' cdef int N_THREADS = os.cpu_count() MODELS = { - 'model_ggml_tiny.bin': 'https://ggml.ggerganov.com/ggml-model-whisper-tiny.bin', - 'model_ggml_base.bin': 'https://ggml.ggerganov.com/ggml-model-whisper-base.bin', - 'model_ggml_small.bin': 'https://ggml.ggerganov.com/ggml-model-whisper-small.bin', - 'model_ggml_medium.bin': 'https://ggml.ggerganov.com/ggml-model-whisper-medium.bin', - 'model_ggml_large.bin': 'https://ggml.ggerganov.com/ggml-model-whisper-large.bin', + 'ggml-tiny.bin': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-tiny.bin', + 'ggml-base.bin': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-base.bin', + 'ggml-small.bin': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-small.bin', + 'ggml-medium.bin': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-medium.bin', + 'ggml-large.bin': 'https://huggingface.co/datasets/ggerganov/whisper.cpp/resolve/main/ggml-large.bin', } def model_exists(model):